Page 1 of 1

xampp virtual hosts problem

PostPosted: 29. September 2008 11:14
by rwalkerarn
Hi everyone!

I am running xampp on the latest version of ubuntu. I have successfully setup a couple of joomla websites to test on localhost and over the local network.

Once I was happy that one of them was ready I decided to shut down my windows server (also running xampp) and switch to my ubuntu box.

I turned on the line in the httpd.conf that links to the virtual hosts file ( Include etc/extra/httpd-vhosts.conf ) and then added the following into the httpd-vhosts.conf file : ...

Code: Select all
<VirtualHost *:80>
ServerName www.colchestersamaritans.org
DocumentRoot /opt/lampp/htdocs/samaritans
</VirtualHost>

<VirtualHost *:80>
ServerName www.test.johnrayjuniors.com
DocumentRoot /opt/lampp/htdocs/johnrayjuniors
</VirtualHost>


This is exactly what I had done successfully using the windows install of xamp, however now when you go to the address you get redirected to the xampp folder that asks you for your lampp password. ie if you go to http://www.colchestersamaritans.org you get http://www.colchestersamaritans.org/xamp/

Anyone got any ideas what could be causing this?

PostPosted: 29. September 2008 11:22
by Wiedmann
There is a line missing with the NameVirtualHosts directive and clear your browser cache.

PostPosted: 29. September 2008 11:46
by rwalkerarn
turns out its actually working fine, but theres a DNS problem somewhere (ubuntu server is linked to two seperate networks with two seperate internet connections)

Nothing is working internally but I just remoted into my machine at home and it can see all the websites I have setup just fine. Looks like i'll have to bug the network administrator to give me some help.

Can someone do me the favor of double checking the following sites :

http://humanities.notleyhigh.com/
http://test.johnrayjuniors.com
http://colchestersamaritans.org

PostPosted: 29. September 2008 22:47
by glitzi85
All 3 Sites are showing different sites, no one is directing to xampp. Looks good!

glitzi