httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Gifford <sgiff...@suspectclass.com>
Subject Re: [users@httpd] Hiding contents of .py script files
Date Mon, 20 Sep 2004 20:51:27 GMT
Rich Pinder <rpinder@usc.edu> writes:

> Thanks for this idea.
>
> I tried this  (but still can view the page(s)):
>
>
>     <Files ~ "^\.py">
>         Order allow,deny
>         Deny from all
>         Satisfy All
>     </Files>

Your regex is wrong.  ^ means "starting at the beginning of the
filename", so you'll match files that start with ".py", not end with
it.  You want something more like:

    <Files ~ "\.py$">

or

    <Files "*.py">

----ScottG.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message