I have setup Nginx as a reverse proxy in front of Apache. Everything seems to be working fine, although:

When i try to access an index-file (say index.php) but without specifying the file itself, and leaving out the trailing slash of the folder, Apache will redirect.


I expect to see index.php - instead Apache will redirect to: ... and show a "page not found" error.

Bonus info

Nginx listens on port 80 Apache listens on port 8080


Okay, I stumbled upopn the answer:

A "trailing slash" redirect is issued when the server receives a request for a URL http://servername/foo/dirname where dirname is a directory. Directories require a trailing slash, so mod_dir issues a redirect to http://servername/foo/dirname/


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.