I have set AcceptPathInfo Off, yet I receive the file in question when it's served through
rewritten path using mod_rewrite, as if I had AcceptPathInfo On.
This doesn't seem to be the correct behavior, am I missing something?
(Using Apache 2.2.17 from Arch Linux repositories with shipped configuration,
only change was AllowOverride All.)
### Test case 1/2
GET http://localhost/testdir/txt-file/XYZ/
A direct request to the file is made with additional path info (/XYZ/).
Result: 404.
### Test case 2/2
Request the file matching RewriteCond with additional path info (/XYZ/). Rewrite rules below.
GET http://localhost/txt-file/XYZ/
Result: The file "txt-file" is served.
### .htaccess
RewriteEngine On
Rewritebase /
|