Welcome! Log In Create A New Profile

Advanced

Path to a directory should return 404

November 07, 2011 05:22PM
Under the document root, I have few directories like
<root>/1/file1.html
<root>/1/file2.html
<root>/2/file1.html
<root>/2/file2.html

If I go to the url http://localhost:8080/1, I get back a 301 with the new location http://localhost/1/ autoindexing is off, and so I end up with a 403 Forbidden page.

Can I change this default behavior such that all the requests for the directories get the universal 404 page i.e. instead of a redirection, it should simply return the configured 404 page for location /.

Sorry, I couldn't find a similar post on the forums. Thanks for any pointers.
Subject Author Posted

Path to a directory should return 404

nchainani November 07, 2011 05:22PM

Re: Path to a directory should return 404

Ruslan Ermilov November 08, 2011 03:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 150
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready