Vhosts are not working (serving the same site)

Discussion in 'General' started by baskin, Jun 11, 2009.

  1. baskin

    baskin Member

    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.

    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.
  2. baskin

    baskin Member

    I solved it!!!

    I had to uncomment

    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

    on every vhost configuration file for the error pages to displayed correctly.

    Hope these info helps you make ISPconfig better.
  3. mgrandio

    mgrandio New Member


    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
  4. baskin

    baskin Member

    I figured it out later. :)

Share This Page