Apache file directories on Ubuntu
I wonder whether anyone can help me with this problem that I have just come across.
I am running Apache 2 on Ubuntu 6.06 and I have just noticed that if, by accident, I type a folder name (which doesn't exist) using the same name as a file name within the same website Apache serves this as the index file of a new folder with the same name as the mis-typed folder.
Apologies for the somewhat confusing explanation - hopefully this will clarify: -
On website 'great_
If I accidentally type 'great_
Then, in turn, all of the relative links within this new index page relate to pages within the 'new' folder and even more bizarrely if you click on them the server returns the same page (the contact.html page) for each of the links with the location bar showing them as different pages (e.g. 'great_
This seems extremely strange and could cause major problem in terms of navigation if a simple error was made typing into the location bar (of course, in theory, you're not expecting your users to type the URLs directly in to the navigation bar, but it could happen).
Presumably this is something to do with the web server configuration but I cannot find a way to prevent this happening.
Anyone have any thoughts on this?? Any help greatly appreciated.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu apache2 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Matt B for more information if necessary.