Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 59465 invoked from network); 20 Oct 2009 02:35:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Oct 2009 02:35:29 -0000 Received: (qmail 4119 invoked by uid 500); 20 Oct 2009 02:35:26 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 4091 invoked by uid 500); 20 Oct 2009 02:35:26 -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 4082 invoked by uid 99); 20 Oct 2009 02:35:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 02:35:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of talklists@newgeo.com designates 64.84.37.6 as permitted sender) Received: from [64.84.37.6] (HELO gonepostal.hostwizard.com) (64.84.37.6) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 02:35:16 +0000 Received: from [192.168.1.109] (76.102.190.248) by gonepostal.hostwizard.com with ESMTP (EIMS X 3.3.9) for ; Mon, 19 Oct 2009 19:34:55 -0700 Message-Id: <5AB669C1-9FF5-46DC-B39A-4472A8BCC3A3@newgeo.com> From: Scott Haneda To: users@httpd.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Mon, 19 Oct 2009 19:34:54 -0700 References: <5ddb50770910191621j1d867611w3c8e11c3bfe2b1ef@mail.gmail.com> <31CAC1C0-B310-4AE4-A84D-4AD41A8774E3@newgeo.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Re: Conditional .htaccess Ah ha, very nice idea. As long as my sites are not relying on the hostname, which I rarely every use src=http://example.com/file.foo and use src=/file.foo, then I should be ok. Thanks, I never thought about approaching it that way, good idea. -- Scott * If you contact me off list replace talklists@ with scott@ * On Oct 19, 2009, at 4:39 PM, LuKreme wrote: > On 19-Oct-2009, at 17:23, Scott Haneda wrote: >> php admin value and php flag values, I would like to only be >> enabled for my IP address, but publicly, I want them off, so the >> public does not see errors, only I do. > > I think the way to do this is to setup a different location. > > Something like this (this is for webdav, but the idea is the same): > > > ServerName www.example.com > ServerAlias example.com > DocumentRoot /usr/home/ksmith/http/ > CustomLog /home/ksmith/logs/site.log combined > ErrorLog /home/ksmith/logs/site_error.log > > > > > ServerName webdav.example.com > DocumentRoot /usr/home/ksmith/http/ > DavLockDB /tmp/DavLock.example > CustomLog /home/ksmith/logs/sitedav.log combined > ErrorLog /home/ksmith/logs/site_daverror.log > > DAV On > AuthType Basic > AuthName "Example.com DAV" > AuthUserFile /home/ksmith/.htdavpass > #AllowOverride All > ForceType text/plain > require valid-user > > > > notice the two virtualhosts are pointing at the same content. > > You would do something similar to create a, say, > phpadmin.example.com that turned on the directives you wanted: > > > ServerName phpa.example.com > DocumentRoot /usr/home/ksmith/http/ > php_flag display_errors on > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. 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