Re: httpd config issue with documentroot
- From: Alan Adams <alan.adams@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 18:42:40 GMT
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/
.
- References:
- httpd config issue with documentroot
- From: Roger N. Clark (change username to rnclark)
- Re: httpd config issue with documentroot
- From: Nico Kadel-Garcia
- Re: httpd config issue with documentroot
- From: Roger N. Clark (change username to rnclark)
- Re: httpd config issue with documentroot
- From: CBFalconer
- Re: httpd config issue with documentroot
- From: Roger N. Clark (change username to rnclark)
- httpd config issue with documentroot
- Prev by Date: Re: HEY NEWBIES...LET ME HELP...
- Next by Date: Re: configuring DHCP and NFS - need an opinion
- Previous by thread: Re: httpd config issue with documentroot
- Next by thread: Grub stuck on stage 2
- Index(es):
Relevant Pages
|