Page 1 of 1

xampp and joomla installation problem on intranet

PostPosted: 29. December 2010 00:56
by hobbel
i've set up xammp and joomla on a virtual server, the site's name is work.online.
I can acces the site on the virtual server through ip adress and trough http://work.online/.
in folder windows/system32/drivers/etc/hosts i've added : 127.0.0.1 work.online
in httpd-vhosts.conf under apache/config/extra/ i've added this:

NameVirtualHost 127.0.0.1:80

<VirtualHost 127.0.0.1:80>
DocumentRoot d:/Xampp/xampp/htdocs/
ServerName localhost
</VirtualHost>

<VirtualHost work.online>
DocumentRoot "d:\xampp\xampp\htdocs\joomla16"
ServerName work.online

<Directory "d:\xampp\xampp\htdocs\joomla16">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

but when i connect from another pc in the office i can only connect through the ipadress 172.16.186.118 to the website.
if i enter http://work.online/ it shows up that's forbidden to access this page.

is this a port problem or is there something i must change on the virtual server ( running w2003)?
i've heard changing it to port 8080 can make it work , but i don't know if this is going to work? and wich files i've to change?
is there a simple solution?
the site must only work on the intranet , internal cms.
i will create a copy later that will run from cd for outside users who work for the company, but all must be CMS


i hope some can help me,

thanks and the best wishes :wink:

Re: xampp and joomla installation problem on intranet

PostPosted: 29. December 2010 04:18
by Sharley
It seems you may be mixing things up a bit - Name based and IP based VirtualHosts without telling Apache that this is what you want to do.

Try this and maybe you don't need to mix things.

Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot "D:/xampp/xampp/htdocs"
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "D:/xampp/xampp/htdocs/joomla16"
ServerName work.online

<Directory "D:/xampp/xampp/htdocs/joomla16">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Apache is case sensitive so make sure that folder names are correct - I changed them to lower case but you would need to change them to how they really are.

The HOSTS file remains the same and the first 2 lines may look like this
Code: Select all
127.0.0.1 localhost
127.0.0.1 work.online


On your network you may need to tell each PC that work.online equates to the IP address of your virtual server machine - so they can type http://work.online instead of 172.16.186.118 - HOSTS file in each PC on the network perhaps may need an edit:
Code: Select all
172.16.186.118 work.online

Best wishes.

Re: xampp and joomla installation problem on intranet

PostPosted: 29. December 2010 23:25
by hobbel
i sincerly hope that i'll not have to tell on every pc that the ipadress resolves to http://work.online/

We are an international company, with more then 3000 people.
and the it guys are based in germany and singapore.

so is there no other way???

Re: xampp and joomla installation problem on intranet

PostPosted: 29. December 2010 23:37
by Altrea
You should find out if your company runs their own DNS-Server.

Re: xampp and joomla installation problem on intranet

PostPosted: 30. December 2010 00:06
by hobbel
if they do, they have to make adjustments?
because we have another site on our company with another vitrual server, and this one uses port 8080
and this one works.

Re: xampp and joomla installation problem on intranet

PostPosted: 02. January 2011 00:21
by hobbel
is there anybody who can help me?

Re: xampp and joomla installation problem on intranet

PostPosted: 02. January 2011 11:56
by WilliL
see answer of Altrea :!:
discribe your Problem, show this thread.