Web Hosting Talk







View Full Version : Trailing / on the end


HostPlains
05-08-2003, 03:01 PM
Anyone know how to get rid of the trailing / when trying to access a folder on the server.

I.E. - customers site is at http://111.111.111.111/~user before propogation, but they have to put http://111.111.111.111/~user/ in order to see anything.

I know this is possible, but can not remember where the file is to edit to get rid of this little glitch. Please help. Thank you in advance.

X-Istence
05-08-2003, 03:11 PM
check your httpd.conf and make sure that its setup correctly.

HostPlains
05-08-2003, 11:00 PM
This is a server wide thing, not just one site. Any other ideas?

sprintserve
05-09-2003, 05:02 AM
It should work without the / . As mentioned above, check your httpd.conf.

Rich2k
05-09-2003, 05:49 AM
Remember a valid url does contain a trailing forward slash. But apache and windows usually have it configured to automatically add the / if it's not there.

stephenM
05-09-2003, 09:21 AM
You should set your "ServerName your.host.com:80" to your actual host. That should clear things up.

X-Istence
05-09-2003, 10:57 AM
Originally posted by stephenM
You should set your "ServerName your.host.com:80" to your actual host. That should clear things up.

just:

ServerName yourhost.com

should work.

T_E_O
05-09-2003, 12:47 PM
UseCanonicalName Off

That's another good way to solve it.

HostPlains
05-09-2003, 01:14 PM
UseCanonicalName Off

This was the key on this problem. Everything is solved now - thanks to everyone that helped!!