Re: How do I keep Virtural hosts from seeing the others document root?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux