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.
- 09-07-2007 #1Just 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?
- 09-19-2007 #2Just Joined!
- Join Date
- Nov 2004
- Location
- Ireland
- Posts
- 6
Have you enabled the sites?
with 'a2ensite'


Reply With Quote
