Error Documents

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is it possible to get local paths to work non-relatively? (Apache 2.2)
Here are the relevant parts of my config and the result:

> <VirtualHost *:80>
>     ServerAdmin webmaster@xxxxxxxxxxxx
>     VirtualDocumentRoot /web/live/%1/
> </VirtualHost>
>

> ErrorDocument 400 /web/error/error.php?code=400
> ErrorDocument 403 /web/error/error.php?code=403

Navigating to http://thisdoesnotexist.dogmatix.net returns this:

> Not Found
> The requested URL / was not found on this server.
> Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

If I create /web/live/thisdoesnotexist/web/error/error.php it works
fine (though returning a 403 error since the directory exists)

In version 2.0 relative and non-relative local paths were handled fine
(/ at start with non-relative, without was relative) is this a bug in
2.2 or have I missed something?

Regards

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux