Virtual Host Directory Permissions Problem

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

 



I am setting up a new virtual host and am having trouble with the root
directory. My new virtual host document root (/var/www/html/vhroot) is a
child directory of my primary host root (/var/www/html). Is it legal to
do that? When I try to access my new virtual host, I get the index from
the primary document root. TIA.

Here are my virtual host directives:

Primary

<VirtualHost *>
DocumentRoot /var/www/html
ServerName primary.mydomain.com:443
<Directory "/var/www/html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

New VH

<VirtualHost *>
DocumentRoot "/var/www/html/vhroot"
ServerName newvh.mydomain.com
<Directory "/var/www/html/vhroot">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

Attachment: signature.asc
Description: OpenPGP digital signature


[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