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 

Reply via email to