Re: enable/disable per directory
| From: | Jason Wong | Date: | Mon, 30 Jun 2003 15:21:29 +0000 |
| Subject: | Re: enable/disable per directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153417@lists.php.net to get a copy of this message | ||
On Tuesday 01 July 2003 00:12, Micha Silver wrote:
> Using apache 1.3.20 and php 4.0.2
> Can I enable / disable posting of php scripts per directory?
Not sure what you mean by 'posting'.
If you really meant execution of php scripts then yes.
> i.e. no php allowd from /home/<username>/public_html
With a standard Apache setup you have something like:
<IfModule mod_php4.c>
AddType application/x-httpd-php .php4 .php3 .phtml .php .inc
AddType application/x-httpd-php-source .phps
</IfModule>
in your default server/host section. You just have to remove it and add it
into the <VirtualHost> or <Directory> containers wherever they're needed.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
If God had not given us sticky tape, it would have been necessary to invent
it.
*/