httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron...@comcast.net
Subject Re: [users@httpd] How do I keep Virtural hosts from seeing the others document root?
Date Mon, 07 Mar 2011 03:27:03 GMT

I'm running Apache/2.2.12 (Ubuntu) Server. I thought I was running a separate instance of
httpd by having Listen configured twice in the ports.conf file. see below. 

I have two IP virtual hosts setup in the site-available 

<VirtualHost 192.168.253.250:80> 
ServerAdmin webmaster@localhost 
DocumentRoot /var/www 
ServerName website1.local 
</VirtualHost> 

and 

<VirtualHost 192.168.253.251:80> 
ServerAdmin admin@localhost 
DocumentRoot /var/http 
ServerName website2.local 
</VirtualHost> 

httpd.conf 

DirectoryIndex index.php index.html index.htm default.htm 

ports.conf 

# NameVirtualHost 
Listen 192.168.253.250:80 
Listen 192.168.253.251:80 

<IfModule mod_ssl.c> 
# SSL name based virtual hosts are not yet supported, therefore no 
# NameVirtualHost statement here 
Listen 443 
</IfModule> 

apache2.conf default install 


Mime
View raw message