AcceptPathInfo Apache directive

Mike lists.accounts at gmail.com
Thu Oct 11 10:25:32 MSD 2007



Grzegorz Nosek wrote:
> 2007/10/7, Mike <lists.accounts at gmail.com>:
>> Hi all
>>
>> Is there an Nginx directive equivalent to the 'AcceptPathInfo' directive
>> in Apache?
>>
>> Mike
> 
> Not per se, you might try using my patchset at
> http://git.localdomain.pl (note for all -- it should be cloneable now
> at <git://git.localdomain.pl/nginx.git>) and the -[FEX] operators.
> They differ from standard -[fex] ones in that they return true for
> existing files with pathinfo attached.
> 
> E.g. if $document_root/foo.html exists and the user requests /foo.html/path/info
> 
> if (-f $request_filename) {
>   # does not match
> }
> 
> if (-F $request_filename) {
>   # matches
> }
> 
> I didn't modify nginx to actually serve static files with path_info
> attached but it sure works for CGI:
> 
> if (-X $request_filename) {
>   fastcgi_pass <fcgiwrap-listening-socket>;
> }
> 
> You can get fcgiwrap at the same url above.
> 
> Best regards,
>  Grzegorz Nosek
> 
> 

Ah ok. Thanks for the information - I'll give it a craic and see what 
happens.

Mike






More information about the nginx mailing list