[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] Re: cobalt-developers digest, Vol 1 #451 - 6 msgs



On 20 Jan 2001, at 12:03, cobalt-developers-request@xxxxxxxxxxxxxxx wrote:

> Message: 6
> Reply-To: <eat@xxxxxxx>
> From: "Eric Arseneau" <eat@xxxxxxx>
> To: <cobalt-developers@xxxxxxxxxxxxxxx>
> Date: Sat, 20 Jan 2001 09:13:11 -0800
> Subject: [cobalt-developers] Having to add / at end of URL to get index.html to show
> 
> I'm not sure this is the right list for this question, but here goes.
> 
> For some reason if I do the following
> 	http://myip/ericsworld
> I get an error, but if I do the following
> 	http://myip/ericsworld/
> The RaQ 3 goes ahead and gets the index.html that is in the directory and
> displays it fine.
> 
> Did anyone else have this problem, if so how did you fix it ?

When you type http://yourip/ericsworld your browser sends a HTTP 
request like:

GET /ericsworld HTTP/1.0
Host: yourip

and then, if ericsworld is a directory, receives a 404 (not found) 
answer, so tries to get it as a directory:

GET /ericsworld/ HTTP/1.0
Host: yourip

If it does not work, it could be due to:
1. A bug in your browser. Very unlikely, specially if it browses 
correctly other websites.
2. A missconfiguration in your server. You probably set a 
'ErrorDocument 404' directive in your httpd.conf or .htaccess that is 
not handling correctly the 'not found' exception (that is, it does not 
include a '404' header in the answer). This is very unusual with 
Apache, unless you are using a .php, .cgi or .asp as 
'ErrorDocument 404'.

I suggest that you comment any ErrorDocument directive and 
restart Apache.


Julio López Garbayo
http://puntoycoma.net