Find the answer to your Linux question:
Results 1 to 2 of 2
Running Apache2 on Ubuntu. I have 3 files in /etc/apache2/sites-available/ (and their corresponding symbolic link in /etc/apache2/sites-enabled. Each one basically looks like this: Code: <VirtualHost *> ServerName site1.mydomain.com DocumentRoot /var/www/site1 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Posts
    39

    cannot access more than 1 virtual host


    Running Apache2 on Ubuntu.

    I have 3 files in /etc/apache2/sites-available/ (and their corresponding symbolic link in /etc/apache2/sites-enabled.

    Each one basically looks like this:
    Code:
    <VirtualHost *>
     ServerName site1.mydomain.com
     DocumentRoot /var/www/site1
    </VirtualHost>

    My problem is that regardless of whether I request http://site1.mydomain.com, http://site2.mydomain.com or http://site3.mydomain.com, the index page of http://site1.mydomain.com is always displayed.

    Any ideas why this may be happening?

  2. #2
    wkz
    wkz is offline
    Just Joined!
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6
    Have you enabled the sites?

    with 'a2ensite'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •