Re: serverside restrictions

From: Date: Sun, 14 Jul 2002 11:03:17 +0000
Subject: Re: serverside restrictions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-107598@lists.php.net to get a copy of this message
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 192.168.0.0 > </Location> This works for me: <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 10.0.0.0/8 </Location> > 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 192.168.0.0 > </Location> > </VirtualHost> This also works for me: <VirtualHost 1.2.3.4> ServerAdmin web-admin@example.com DocumentRoot /home/www/example.com/html ServerName example.com <Directory "/home/www/example.com/html"> Order allow,deny Allow from 10.0.0.0/24 </Directory> </VirtualHost> > 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 */

« previous php.general (#107598) next »