Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 12389 invoked from network); 14 Mar 2011 13:55:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Mar 2011 13:55:17 -0000 Received: (qmail 89645 invoked by uid 500); 14 Mar 2011 13:55:14 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 89582 invoked by uid 500); 14 Mar 2011 13:55:14 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 89574 invoked by uid 99); 14 Mar 2011 13:55:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Mar 2011 13:55:14 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=ASF_LIST_SERVER_DEV_A,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [207.115.11.51] (HELO fmailhost01.isp.att.net) (207.115.11.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Mar 2011 13:55:08 +0000 Received: from [127.0.0.1] (adsl-145-152-110.asm.bellsouth.net[72.145.152.110]) by isp.att.net (frfwmhc01) with ESMTP id <20110314135446H01007vm2fe>; Mon, 14 Mar 2011 13:54:46 +0000 X-Originating-IP: [72.145.152.110] Message-ID: <4D7E1E21.80609@bellsouth.net> Date: Mon, 14 Mar 2011 09:54:41 -0400 From: Dennis Putnam User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: users@httpd.apache.org References: <4D7D0C78.7040801@bellsouth.net> <021b01cbe1c1$7baec4a0$730c4de0$@hossy.com> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA10E35E80BE2CB35375E9363" Subject: Re: [users@httpd] Virtual Host Directory Permissions Problem --------------enigA10E35E80BE2CB35375E9363 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for the reply. I removed the 443 from that directive, since I'm using standard ports, I don't think I need to specify anything. I believe that may have been added automatically by Webmin at some point when I was messing with it. Here is the httpd -S output: VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: _default_:443 primary.localdomain (/etc/httpd/conf/vhosts.d/01_default_ssl_vhost.conf:13) *:* primary.mydomain.com (/etc/httpd/conf/httpd.conf:1116) *:* newvh.mydomain.com (/etc/httpd/conf/httpd.conf:112= 7) Syntax OK I don't see anything there that hints at the document root for the virtual hosts which is the crux of my problem. Howevwer, I did find an error in the httpd log that is obviously related. (13)Permission denied: /var/www/html/Scripts/Menu132/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://newvh.mydomain.com/ I don't see why there is a permissions problem with that subdirectory since it is not referenced in the page attempting to load. It must be because it is loading the index.html from the primary document root. Which it does successfully (that seems like a security issue to me) and which also does not reference that menu directory. On 3/13/2011 10:40 PM, Francois Gingras wrote: > On Sun, Mar 13, 2011 at 4:59 PM, Hossy wrote: >> 1. What are you typing to access it? >> 2. Try removing the ":443" from your primary ServerName entry. I beli= eve >> the port is defined inside the tag. >> >> -----Original Message----- >> From: Dennis Putnam [mailto:dap1@bellsouth.net] >> Sent: Sunday, March 13, 2011 1:27 PM >> To: users@httpd.apache.org >> Subject: [users@httpd] 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 t= o do >> that? When I try to access my new virtual host, I get the index from t= he >> primary document root. TIA. >> >> Here are my virtual host directives: >> >> Primary >> >> >> DocumentRoot /var/www/html >> ServerName primary.mydomain.com:443 >> >> allow from all >> Options +Indexes >> >> >> >> New VH >> >> >> DocumentRoot "/var/www/html/vhroot" >> ServerName newvh.mydomain.com >> >> allow from all >> Options +Indexes >> >> >> >> >> >> --------------------------------------------------------------------- >> The official User-To-User support forum of the Apache HTTP Server Proj= ect. >> See for more info. >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >> " from the digest: users-digest-unsubscribe@httpd.apache.org >> For additional commands, e-mail: users-help@httpd.apache.org >> >> > 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 Proje= ct. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > > --------------enigA10E35E80BE2CB35375E9363 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1+HiEACgkQ/fiWYqZ2tVSRHQCdHc4oFenmcFFQeChPVsVkVDPj SjYAmgP5n0ipVhw+ZrJV1EwN48mXSRx2 =2xvd -----END PGP SIGNATURE----- --------------enigA10E35E80BE2CB35375E9363--