[Gllug] Problems with mod_alias and Apache

Peter Corlett abuse at cabal.org.uk
Thu Aug 28 10:49:00 UTC 2008


On Thu, Aug 28, 2008 at 11:22:13AM +0100, william pink wrote:
[...]
> But when I reload the config and try and go to the /example it tries to
> resolve www.example.com/example and I can't work out what I am I doing
> wrong, I have looked through the Apache documentation and can't see any
> reference to this. I haven't got www.example.com in my /etc/hosts so I amm
> not sure where it is getting it from?

You've not really given us enough information, but I'd bet that you've got
ServerName www.example.com somewhere and Apache's trying to redirect there.
Apache will redirect if you give it the URL of a directory without the /.
(It needs a redirect because otherwise relative URLs will be wrong.)

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list