On Sunday 14 July 2002 14:17, Liam MacKenzie wrote:

> This works fine, but is there a way to get apache to do it for me instead?
> Like, this for example...
> <Location /server-info>
>     SetHandler server-info
>     Order deny,allow
>     Deny from all
>     Allow from
> </Location>

This works for me:

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from

> Is it possible to have apache do this for a Vhost?  like this...
> <VirtualHost *>
> DocumentRoot /home/admin
> ServerName admin.blabla.net
> ErrorLog /home/logs/error.admin.net.log
> CustomLog /home/logs/access.admin.net.log common
> php_admin_flag safe_mode off
> <Location /home/admin>
>     Order deny,allow
>     Deny from all
>     Allow from
> </Location>
> </VirtualHost>

This also works for me:

 DocumentRoot /home/www/example.com/html
 ServerName example.com

 <Directory "/home/www/example.com/html">
  Order allow,deny
  Allow from

> P.S.  I know it's got to do with Apache mostly, but it kinda has some
> relation to PHP...  ;-)

To be honest, follow-up questions should be directed to the apache list.

Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

You can't have your cake and let your neighbor eat it too.
                -- Ayn Rand

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to