httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Pinder <rpin...@usc.edu>
Subject Re: [users@httpd] Hiding contents of .py script files
Date Tue, 21 Sep 2004 01:21:31 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks so much all,<br>
This one worked (other didnt):<br>
<br>
<blockquote type="cite"><tt>&lt;Files ~ "*.py"&gt;<br>
&nbsp;&nbsp;&nbsp; Order allow,deny<br>
&nbsp;&nbsp;&nbsp; Deny from all<br>
&nbsp;&nbsp;&nbsp; Satisfy All<br>
&lt;/Files&gt;</tt></blockquote>
<br>
Rich <br>
<br>
<br>
Scott Gifford wrote:<br>
<blockquote cite="midly8yb4oe9c.fsf@gfn.org" type="cite">
  <pre wrap="">Rich Pinder <a class="moz-txt-link-rfc2396E" href="mailto:rpinder@usc.edu">&lt;rpinder@usc.edu&gt;</a>
writes:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Thanks for this idea.

I tried this  (but still can view the page(s)):


    &lt;Files ~ "^\.py"&gt;
        Order allow,deny
        Deny from all
        Satisfy All
    &lt;/Files&gt;
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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:

    &lt;Files ~ "\.py$"&gt;

or

    &lt;Files "*.py"&gt;

----ScottG.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <a class="moz-txt-link-rfc1738" href="http://httpd.apache.org/userslist.html">&lt;URL:http://httpd.apache.org/userslist.html&gt;</a>
for more info.
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:users-unsubscribe@httpd.apache.org">users-unsubscribe@httpd.apache.org</a>
   "   from the digest: <a class="moz-txt-link-abbreviated" href="mailto:users-digest-unsubscribe@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:users-help@httpd.apache.org">users-help@httpd.apache.org</a>


  </pre>
</blockquote>
</body>
</html>

---------------------------------------------------------------------
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