-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 07 December 2001 12:22 am, Gordon Messmer wrote:
> On Thu, 6 Dec 2001, Jim Bija wrote:
> > I gues i have a question in here too, does the version that comes
> > with redhat 7.2 by default COMPILE require the trailing slash?
>
> No.  Apache *always* requires the trailing '/' character.  When apache
> receives a request for a directory without a trailing slash, it
> generates a 301 responce to indicate that the web browser look
> elsewhere.  In this case, the browser will be handed a URL containing
> the hostname that apache got from it's config and the path with the
> slash appended.  This will fail if your hostname isn't configured
> correctly.  If your machine doesn't resolve your 127.0.0.1 to your
> hostname, then set ServerName in /etc/httpd/conf/httpd.conf.

You beat me to answering this one, so I'll just provide the proof. ;)

xxx.xxx.xxx.xxx - - [04/Dec/2001:13:35:59 -0500] "GET /rpms HTTP/1.1" 301 
335 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) 
Gecko/20010901"
xxx.xxx.xxx.xxx - - [04/Dec/2001:13:36:00 -0500] "GET /rpms/ HTTP/1.1" 
200 2050 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) 
Gecko/20010901"

The browser asked for http://www.tuxfan.homeip.net:8080/rpms, got a 301 
error, and immediatly asked again, including the trailing slash.
This is on a clean install of 7.2, using apache as provided by Redhat. 
Note that the user was not required to provide the trailing slash, the 
browser added it.

> That's not distribution specific.  Your advise came from elitists.
> Elitists are morons.  

Agreed.

> All non-Red Hat distributions suck  ;)

How.... Elitist. ;) 
(I agree here as well, of course.)

- -D

- -- 

pgp key:  http://www.tuxfan.homeip.net:8080/pgpkey.txt

- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8EFjKeMAUbzJhSVcRAvgHAKCHuu7wIeSyYUvCrSVnGstzqtULPgCfXM2h
pazncn9p/N8bvhhnDa4qQFo=
=hY48
-----END PGP SIGNATURE-----



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to