You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ben Hussey <be...@dogmatix.net> on 2008/02/10 16:49:16 UTC
[users@httpd] Error Documents
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@dogmatix.net
> 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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Error Documents
Posted by Ben Hussey <be...@dogmatix.net>.
Ah indeed - I missed the Alias line from my 2.0 configuration.
Thanks
On 10/02/2008, Nick Kew <ni...@webthing.com> wrote:
> On Sun, 10 Feb 2008 15:49:16 +0000
> "Ben Hussey" <be...@dogmatix.net> wrote:
>
> > 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?
>
> Indeed, 2.2 behaves as you describe. Both 2.2 and 2.0 are documented
> as behaving that way, so I'm guessing you may have misremembered 2.0.
>
> --
> Nick Kew
>
> Application Development with Apache - the Apache Modules Book
> http://www.apachetutor.org/
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Error Documents
Posted by Nick Kew <ni...@webthing.com>.
On Sun, 10 Feb 2008 15:49:16 +0000
"Ben Hussey" <be...@dogmatix.net> wrote:
> 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?
Indeed, 2.2 behaves as you describe. Both 2.2 and 2.0 are documented
as behaving that way, so I'm guessing you may have misremembered 2.0.
--
Nick Kew
Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org