|
Home > Archive > Apache Server configuration support > May 2007 > Allowing only some requests ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Allowing only some requests ?
|
|
| geometris@fastmail.fm 2007-05-12, 1:17 pm |
| Hi,
After reading the docs about <Limit> and <LimitExcept>, I still cannot
figure out if I can use them to allow only one type of request from
all users and without any authentification.
For instance, if I want to only allow POST requests in the cgi-bin
directory, is this the right way to do ?
Order Allow, Deny
allow from all
<Directory C:/Apache2/www.verygoodsite.com/cgi-bin>
<LimitExcept POST>
deny from all
</LimitExcept>
</Directory>
| |
| shimmyshack 2007-05-12, 1:17 pm |
| On May 12, 1:51 pm, geomet...@fastmail.fm wrote:
> Hi,
> After reading the docs about <Limit> and <LimitExcept>, I still cannot
> figure out if I can use them to allow only one type of request from
> all users and without any authentification.
> For instance, if I want to only allow POST requests in the cgi-bin
> directory, is this the right way to do ?
>
> Order Allow, Deny
> allow from all
> <Directory C:/Apache2/www.verygoodsite.com/cgi-bin>
> <LimitExcept POST>
> deny from all
> </LimitExcept>
> </Directory>
yes,
Limit is shorthand for "limit the configuration to the following
verbs"
LimitExcept means "limit the config to the all but the following
verbs"
|
|
|
|
|