HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Vhosts are not working (serving the same site) (http://www.howtoforge.com/forums/showthread.php?t=36298)

baskin 11th June 2009 16:44

Vhosts are not working (serving the same site)
 
I have created today a second site on my ISPconfig 3 server (opensuse 11.1).

After that i'm getting the following warning when restarting apache.

Quote:

Thu Jun 11 17:39:03 2009] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
The results is that only the first site is accessible by its URL (e.x. www.cywn.gr). When i try to access the second site (e.x. www.kernelit.gr) the pages stored on the first site are served.

The directories for the second site are created normally.

What should i check? Are the Vhosts broken?

Thank in advance.

baskin 11th June 2009 17:20

I solved it!!!

I had to uncomment

Quote:

NameVirtualHost *:80
in /etc/apache2/listen.conf

and add "www" in front of "ServerName" directive on both vhosts configuration files.

Should that have been done automatically by the ISPconfig system?

Off-topic: I found that i had to add

Quote:

Alias /error/ "/srv/www/cywn.gr/web/error/"
on every vhost configuration file for the error pages to displayed correctly.

Hope these info helps you make ISPconfig better.

mgrandio 11th June 2009 18:34

Hi,

You do not have to add manually www on vhost config file of your domain if in site configuration you put www or * in autosubdomain

baskin 12th June 2009 20:38

Quote:

Originally Posted by mgrandio (Post 193485)
Hi,

You do not have to add manually www on vhost config file of your domain if in site configuration you put www or * in autosubdomain

I figured it out later. :)


All times are GMT +2. The time now is 10:56.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.