NYCPHP Meetup

NYPHP.org

[nycphp-talk] Apache Directives to Disable All Scripts in Sub-Directory?

Michael B Allen ioplex at gmail.com
Tue Oct 2 12:04:13 EDT 2007


Hey,

I would like to have a directory under ~/public_html that completely
disables all mime time interpretations. Specifically, if I put a php
or cgi file in there I want people to see the PHP.

I tried the following just to see if I could disable .php but it had no effect.

    <Directory /home/me/public_html/code>
       RemoveType .php
       Order allow,deny
       Allow from all
       Options Indexes
    </Directory>

Any ideas?

Mike



More information about the talk mailing list