AcceptPathInfo Apache directive

Grzegorz Nosek grzegorz.nosek at
Mon Oct 8 11:51:00 MSD 2007

2007/10/7, Mike <lists.accounts at>:
> 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 (note for all -- it should be cloneable now
at <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

More information about the nginx mailing list