On Tue, 23 Jul 2002, Arvind wrote:

> i was typing in my URL as http://www.foo.com/mydir
> 
> and the page that was opening was
> 
> http://www.foo.com/mydir/index.html
> 
> now all of a sudden this has stopped happening and i have to necessarily
> type in
> http://www.foo.com/mydir/ (mind that slash in the end)

you probably don't have mod_dir

when you type the url without the /, what happens is this:

the browser makes a request to the server:

GET /mydir HTTP/1.1
Host: www.foo.com
Connection: close


In case of mod_dir the server responds:

HTTP/1.1 302 Page moved
Location: http://www.foo.com/mydir/
Connection: close


The browser makes a request to the server

GET /mydir/ HTTP/1.1
Host: www.foo.com
Connection: close

The server responds:

HTTP/1.1 200 OK
Connection: close
Content-type: text/html

Your index.html file here


If you don't have mod_dir, the first response would be a 404.


The other possibility is that /mydir/ is an alias to another directory, 
and your alias specifies /mydir/ and not /mydir


-- 
Progress means replacing a theory that is wrong with one more subtly wrong.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to