I think, Apache works correctly. In my opinion, I cannot expect, that a simple .htaccess file in a directory serves the /etc/passwd and /etc/shadow file, for example. If you place this RewriteRule in the default file (for example), not in a .htaccess file, then the /tmp/bar.tmp are served. See the documentation for details:
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule --> Per-directory Rewrites http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html Log with RewriteRule in .htaccess: [perdir /var/www/] strip per-dir prefix: /var/www/foo -> foo [perdir /var/www/] applying pattern 'foo' to uri 'foo' [perdir /var/www/] rewrite 'foo' -> '/tmp/bar.tmp' [perdir /var/www/] internal redirect with /tmp/bar.tmp [INTERNAL REDIRECT] [perdir /var/www/] add path info postfix: /var/www/tmp -> /var/www/tmp/bar.tmp [perdir /var/www/] strip per-dir prefix: /var/www/tmp/bar.tmp -> tmp/bar.tmp [perdir /var/www/] applying pattern 'foo' to uri 'tmp/bar.tmp' [perdir /var/www/] pass through /var/www/tmp Log with RewriteRule in default: init rewrite engine with requested uri /foo applying pattern '/foo' to uri '/foo' rewrite '/foo' -> '/tmp/bar.tmp' local path result: /tmp/bar.tmp go-ahead with /tmp/bar.tmp [OK] -- file-system path substitution for RewriteRule in .htaccess not working as documented https://bugs.launchpad.net/bugs/174282 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs