I need to send all requests for the directory home/alphauser to backend/alphauser, but not requests to files inside the home/alphauser directory. For example:
http://home/alphauser -> http://backend/alphauser http://home/alphauser/ -> http://backend/alphauser http://home/alphauser/icon.png -> http://home/alphauser/icon.png http://home/alphauser/index.html -> http://home/alphauser/index.html
I created an ".htaccess" file in the home/alphauser/ directory with the following:
RewriteEngine on RewriteRule ^$ http://backend/alphauser [P]
mod_rewrite allows for access to files inside the home/alphauser/ directory as expected, but when the directory itself is requested either with or without the slash:
http://home/alphauser http://home/alphauser/
..the browser (firefox) presents a file download popup that states:
You have chosen to open a file which is a: httpd/unix-directory
The contents of the file is the proper html from backend/alphauser (which is the url pattern to a JSP) so the payload returned is correct. It seems as though apache is sending back this strange mime type of "httpd/unix-directory"
Help!