I have a framework where I usually have a /pub and /app folder and only give apache /pub. But unfortunately with a setup I have, my files are in the same directory as /app.
I know how to distable directory listing and peeking around (give access denied message), but I want to completely mask it. For instance...
With that first solution someone can guess that /app exists because he gets an access denied and that /foo doesn't exist because you get a "Not Found" message.
How can I fake the Not Found error?
....besides pasting Apache's html of that page in a index.html file, other than the fact that this is really messy (lots of sub directories) I'm looking for a cleaner solution.
I know how to distable directory listing and peeking around (give access denied message), but I want to completely mask it. For instance...
With that first solution someone can guess that /app exists because he gets an access denied and that /foo doesn't exist because you get a "Not Found" message.
How can I fake the Not Found error?
....besides pasting Apache's html of that page in a index.html file, other than the fact that this is really messy (lots of sub directories) I'm looking for a cleaner solution.
Comment