Re: httpd config issue with documentroot



In message <43DEE139.2050607@xxxxxxxxx>
"Roger N. Clark (change username to rnclark)" <username@xxxxxxxxx> wrote:

> CBFalconer wrote:
>
> > "Roger N. Clark (change username to rnclark)" wrote:
> >
> >>Nico Kadel-Garcia wrote:
> >>
> >>>Roger N. Clark (change username to rnclark) wrote:
> >>>
> >>>
> >>>>Hi. I have a server that when you address it as:
> >>>>
> >>>>http://www.aserver.com
> >>>>
> >>>>it works fine,
> >>>>
> >>>>but http://www.aserver.com/index.html does not. It responds:
> >>>>
> >>>>Not Found
> >>>>The requested URL /index.html/ was not found on this server.
> >>>>
> >
> > ... snip ...
> >
> >>>What do the error logs in /var/log/httpd/ say about it?
> >>
> >>error_log:
> >>File does not exist: /var/www/html/index.html/
> >
> >
> > Well? What's the problem?
> >
> The system adds the trailing / and says file does not exist.
> If I delete the / in the url and hit return, the system
> adds back the / and gives the error. If I delete
> the index.html/ so it just reads something like
> "http://www.aserver.com"; it works fine and reads the index.html
> file in the /var/www/html/ directory. But enter the url:
> "http://www.aserver.com/index.html"; and it fails giving the
> above error message. For the case "http://www.aserver.com";
> I can make unique changes to the index.html file and it reads
> and displays them just fine. So there is not a permission
> issue.
>
> Roger

First - I'm not a webserver expert.

However, I do remember finding in one of the config files a list of the
files which can be offered if a bare directory it given in the URL - so when
the browser sends www.bbc.co.uk the server adds / and then any of index.htm,
index.html and anything else you care to put in this list, that it can find
in the directory at the root of the site.

It strikes me that if a stray / has crept into the list, or possibly if the
list is empty, then you could see the above behaviour being a possible
result.

As I said, I'm no expert, but I'd look at the config files very carefully.

--
Alan Adams, from Northamptonshire
alan.adams@xxxxxxxxxxxxxxxxxxxxxxxxxxx
http://www.nckc.org.uk/
.



Relevant Pages

  • Re: [opensuse] KDE Xorg error
    ... do you remember the error message that you got? ... was it something like "libgtk" ?? ... perhaps you were updating something and the power surprisingly went down. ... It would probably cause config files to be written, ...
    (SuSE)
  • [tin] corrupt configuration
    ... locking up with an error message about an invalid group, ... What config files do I need ...
    (news.software.readers)
  • Re: D&D software for the Mac
    ... Which error message are you getting? ... it asks me where to plant the config files and then crashes (with no ...
    (rec.games.frp.dnd)