You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1997/09/29 02:20:37 UTC
[PATCH] Re: proxy access restrictions
Try this:
<Directory ~ "^proxy:">
order deny,allow
...
</Directory>
The old syntax is probably broken because of my change in * semantics --
the change which made it respect / boundaries.
The patch below should make the old syntax work, but I'm not sure we want
to do it. It won't affect the newer directory_walk code that's intended
for supporting directories, as opposed to the special proxy: case. I'd
like to deprecate Directory proxy: ... but it doesn't have to be now. So
yeah I guess this interim patch is fine.
Dean
On Wed, 24 Sep 1997, Marc Slemko wrote:
> <Directory proxy:*>
> <Limit GET PUT POST DELETE CONNECT OPTIONS>
> order deny,allow
> deny from [machines you'd like *not* to allow by IP address or name]
> allow from [machines you'd like to allow by IP address or name]
> </Limit>
> </Directory>
Index: http_request.c
===================================================================
RCS file: /export/home/cvs/apachen/src/main/http_request.c,v
retrieving revision 1.85
diff -u -r1.85 http_request.c
--- http_request.c 1997/09/14 12:16:55 1.85
+++ http_request.c 1997/09/29 00:16:14
@@ -324,7 +324,7 @@
this_conf = entry_config;
}
else if (entry_core->d_is_fnmatch) {
- if (!fnmatch(entry_dir, test_filename, FNM_PATHNAME))
+ if (!fnmatch(entry_dir, test_filename, 0))
this_conf = entry_config;
}
else if (!strncmp(test_filename, entry_dir, strlen(entry_dir)))