View Single Post

   
  #4 (permalink)  
Old 02-19-2008, 12:01 PM
Jim Patterson
 
Posts: n/a
Default Re: Apache - so far so good.

Morten Lundstrøm wrote:
> Okay I've managed to set most things up on my system the way I like it.
> Sendmail goes thru my ISPs SMTP server :-D
> Apache fetches index.html and index.php files now :-D
> MySQL works :-D
> But I can't get get Apache to fetch the index.* in a sub-dir without adding
> a / to the end of the adress.
> for example: http://www.hyperion.adsl.dk/~morten/si/
> I would like to be able to write http://www.hyperion.adsl.dk/~morten/si
> and then it should work :-)
> I'm not really sure what kinda option/setting I'm looking for so it's not
> particularly easy :-(


You might have better luck posting questions like this to
alt.apache.configuration or comp.infosystems.www.servers.unix, but here
goes.

This behaviour can be caused by an erronous ServerName directive, i.e.
one that doesn't lead to the server when used by a web client (browser).
The reason is that some versions of Apache handle a folder name by
redirecting the browser to a new URL which has the "/" on the end, but
it needs ServerName to build up the URL. If it's wrong, the redirect
doesn't work. Fixing ServerName makes the redirect work, which solves
the problem.

--
Jim Patterson
Ottawa, CANADA
Reply With Quote