https://issues.apache.org/bugzilla/show_bug.cgi?id=56883
--- Comment #7 from Eugenia Bahit <[email protected]> --- (In reply to Eric Covener from comment #6) > I cannot really see any misbehavior, any idea where the recreate is wrong? > > Alias /PR56883 /tmp/PR56883 > <Directory /tmp/PR56883> > AllowOverride none > Options +MultiViews > require all granted > RewriteEngine on > RewriteCond %{REQUEST_URI} !=/PR56883/other.html > RewriteRule ^ /PR56883/other.html > </directory> > > $ wget -q http://localhost/PR56883/index -O- > <html><body><h1>other.html<h1></body></html> > $ wget -q http://localhost/PR56883/other -O- > <html><body><h1>other.html<h1></body></html> > $ wget -q http://localhost/PR56883/XXX -O- > <html><body><h1>other.html<h1></body></html> > $ ls -1 /tmp/PR56883/ > index.html > other.html > > When I disable mod_rewrite, negotiation works for the first two URL's as > expected. Eric, I think that your recreation could be out of the context that I exposed. I'm not sure. But if you want to recreate the problem, please, try this: 1) create the virtual host file (or edit it) with the following code: <VirtualHost *:80> ServerName localhost DocumentRoot /var/www/myapp/public <Directory /var/www/myapp/public> Options -Indexes +MultiViews AllowOverride All </Directory> ErrorLog /var/www/myapp/error.log CustomLog /var/www/myapp/access.log combined </VirtualHost> 2) create only 3 files: foo.php, bar.php and .htaccess and redirect all petitions to foo.php: mkdir -p /var/www/myapp/public echo "Foo" > /var/www/myapp/public/foo.php echo "Bar" > /var/www/myapp/public/bar.php echo "RewriteEngine On" > /var/www/myapp/public/.htaccess echo "RewriteRule ^ foo.php" >> /var/www/myapp/public/.htaccess 3) Now, try to get http://localhost, http://localhost/whatever and http://localhost/bar. The last URI get an error 404. 4) But now, create a file called bar.html and try to get http://localhost/bar again. Now works but this is not logic. 5) Remove bar.html and try to supress MultiViews from Virtual Host. Restart Apache and try again. Now works. At the following link, I copied stdout from some tests made: http://cursos.eugeniabahit.com/pastebin/codigofuente/ver/24 I hope this, can help to understand the problem. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
