View Single Post
  #1  
Old 11th May 2007, 20:40
Ashaman074 Ashaman074 is offline
Junior Member
 
Join Date: May 2007
Posts: 27
Thanks: 0
Thanked 1 Time in 1 Post
Default Virtual Hosts not working properly

I am having some problems and hopefully someone here can help shed some light on them.

This is the second linux/apache server I have set up. The first one was several years ago; but at the time I hosted a website and virtual sites using the process outlined here:http://www.onlamp.com/pub/a/apache/2...24/vhosts.html which worked fine.

I now have a new server running Ubuntu (Edgy) & Apache. When I read about ISPconfig, I thought it would provide a simple and easy method of managing our website as well as adding or removing additional virtual sites I might want to add. The thought was that by using this, I would avoid manual editing configuration files.

I went ahead with the installation which seemed to go as planned. However, after creating the websites, trying to access them from a browser they all of them arrived at the same/common destination of /var/www and would list the contents. This folder contains folders named "web1, web2, etc. as well as links such as www.site1.com (linking to web1), www.site2.com (linking to web2), etc.) so it looks like ISPConfig created them, but for some reason they aren't accessed when the address is put into the Browser. I do not know why this is happening, shouldn't ISPConfig have configured them for me?

Thinking maybe not, I remembered the first link I used at onlamp and tried that. It seemed to work, though I think that maybe that method is now outdated...as I found a newer guide at http://www.debuntu.org/2006/02/22/7-...using-apache-2.

I then tried this method. However, after doing that, I am now getting the message "[warn] VirtualHost site2.com:0 overlaps with VirtualHost site1.com:0, the first has precedence, perhaps you need a NameVirtualHost directive.

Can anyone tell me if I am even on the right path here? The first link I sent seems to be older, so I abandoned it, the second seemed better suited to what I was trying to do, but it doesn't seem to be working, and I still am wondering if I should have had to try either or if ISPConfig should have done it for me but didn't because there is another issue!

I have been searching like crazy the last couple days, but it is difficult when I am not sure which direction I should even be following...

Any pointers/help would be appreciated!
Reply With Quote
Sponsored Links