On Sun, Mar 13, 2011 at 4:59 PM, Hossy <hossy-apache@xxxxxxxxx> wrote: > 1. What are you typing to access it? > 2. Try removing the ":443" from your primary ServerName entry. I believe > the port is defined inside the <VirtualHost> tag. > > -----Original Message----- > From: Dennis Putnam [mailto:dap1@xxxxxxxxxxxxx] > Sent: Sunday, March 13, 2011 1:27 PM > To: users@xxxxxxxxxxxxxxxx > Subject: Virtual Host Directory Permissions Problem > > 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> > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > There are several issues with your vhosts: 1) Assuming you want those to work on any interface, use *:PORT instead of *. Port 80 is for HTTP, and 443 is for HTTPS, normally. 2) Let's see httpd -S or apache2ctl -S under debian to see the full extent of your virtual hosts configuration. Frank. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx