Site5, the trailing slash issue

Posted by bordalix Fri, 04 Aug 2006 10:53:00 GMT

Anyone with a hosting service from Site5 could have this problem: when you have your web application in a directory symlinked, like

~/public_html/webapp -> ~/apps/webapp

when accessing to the URL

http://yourdomain.com/webapp

you will have an error (Bad Request). But if you add the trailing slash to the URL, everything will work fine. After some digging in Site5 foruns, I resolved the problem by creating a file, named 400.shtml, placed in the public_html directory, with the following content:

<SCRIPT LANGUAGE="JavaScript">
<!--
window.location="<!--#echo var="REQUEST_URI" -->/";
// -->
</script>

Hope it helps.

Tags  | 1 comment

Comments

  1. pfig said about 3 hours later:
    i'd like to talk to you about site5, as i'm looking for a good hosting provider with decent rails support (textdrive has it, but their apache management scripts are teh suck and have screwed me lots of times; dreamhost is good for everything *but* rails). on top of rails, it'd be nice to have lighty, ssh, fastcgi, etc.

Comments are disabled