Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

Example:

http://127.0.0.1/directory

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

Bonus info

Nginx listens on port 80 Apache listens on port 8080

share|improve this question

1 Answer 1

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/

http://httpd.apache.org/docs/2.0/mod/mod_dir.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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