[Klug-general] Apache2 filename/dir mish-mash

James Morris jwm.art.net at gmail.com
Wed Sep 8 11:31:46 UTC 2010


On 8 September 2010 12:26, James Morris <jwm.art.net at gmail.com> wrote:
> Hi,
>
> Hoping someone here can help.
>
> I've setup apache2 on my home machine for developing my site before
> making updates live. I've noticed behaviour which seems a bit weird:
>
> When requesting [ http://localhost/site/index ] Apache2 will serve the
> page [ http://localhost/site/index.php ]. This initially doesn't seem
> much of a problem until I realized requesting [
> http://localhost/jwm-art.net/index/somethingrandom ] also serves [
> http://localhost/site/index.php ] and that [
> http://localhost/jwm-art.net/index/somethingrandom/?query=somecontent
> ] also works without any problem what so ever as if it were [
> http://localhost/site/index.php?query=somecontent ].
>
> Does anyone know how to make this insane behaviour go away so that [
> http://localhost/site/index ] and [
> http://localhost/jwm-art.net/index/somethingrandom ] (etc) generate
> 404 Not Found errors?
>
> I thought it might be adding "ErrorDocument 404 /jwm-art.net/"
> to .htaccess at fault, but removing the line showed this not to be the case.
>
>
> Thanks in advance,
> James.
>

Note that I forgot to replace /jwm-art.net/ with /site/ in some of the
examples above :-|



More information about the Kent mailing list