httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Re: how to limit access to application base on port number
Date Tue, 05 Apr 2005 17:11:11 GMT
On Apr 5, 2005 1:08 PM, Charles Li <cli168@yahoo.com> wrote:
> Thanks.
> 
> This is what I have setup:
> 
> <VirtualHost _default_:8000>
> # deny any url that does not match "/AAA"
>     <LocationMatch "!^(/AAA)">
>         Order Deny,Allow
>         Deny from all
>     </LocationMatch>
> </VirtualHost>

Your LocationMatch does not use proper regex syntax.  You probably
want something like

<Location />
Order deny,allow
Deny from all
</Location>
<Location /AAA>
Order deny,allow
Allow from all
</Location>

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