On Fri, 7 Dec 2001, Jim Bija wrote:

> By default install my hosts file was as such:
> 
> 127.0.0.1    ns2 localhost.localdomain localhost

Yeah, that's good.  Now trying to resolve the local host address to a name 
will result in your host name.

> this is a a ns2 server as well as www server, during install it asked me my
> hostname i told it, it added it to 127.0.0.1 and ignored my ethernet addrees
> (grumbles at redhat, this is a problem with your install program no?)

Should be acceptable behavior.

> anyway, sometime down the line i noticed this hosts file and thought, that
> just aint right so i changed it to
> 
> 127.0.0.1 localhost.localdomain     localhost
> 1.1.1.1     ns2                                ns2.mydomain.com

Well, now resolving the local host address to a name will result in 
localhost.localdomain.  Apache will not be able to use this to generate 
301 redirects, since web clients can't do anything useful with a location:
http://localhost.localdomain/

> in my httpd.conf file the servername has untill tonight said
> ServerName www.mydomain.com which is not the case in reverse DNS so i
> changed it to ns2.mydomain.com (im slowly making things "correct") or
> atleast i think i am..

That will fix the problem you had with the trailing slashes.

> This whole trailing slash thing came to me when someone said why doesnt this
> page work www.my.com/~eddie
> well someone told me that apache had recently made you put a trailing slash
> on dirs for some security problem, i said fine and excepted it.

I don't remember apache ever acceping dirs without a trailing slash.

> so i just went to my web server tonight and ill be DAMNED if it works
> fine now with no trailing /'s.

Because you set the ServerName.

> PS* If anyone knows how i fixed my having to put trailing /'s on URLs i
> would like to know, k?  ;)

Well, without having seen you try to break it, I'd have to assume that it 
was fixed by setting the ServerName in httpd.conf, just like I said it 
would be  :)

-- 
If I had a dollar for every brain that you don't have,
        I'd have one dollar. - Squidward to SpongeBob



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

Reply via email to