httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Altering what the internet (but not intranet) sees for a vhost
Date Thu, 27 Sep 2007 18:56:41 GMT
On 9/27/07, gb1071nx <gb1071nx@globallyboundless.com> wrote:
> Thanks Joshua,
>
> >
> > There are lots of different ways to do this. Here's a
> > relatively simple one:
> >
> > <Location />
> > Order deny,allow
> > Deny from all
> > Allow from intranet.example.com
> > ErrorDocument 403 /underconstruction.html
> > </Location>
>
> When I try this, and via a connection to the outside world, try to
> access the site, I get:
>
>
> -| Forbidden
> -| You don't have permission to access / on this server.
> -|
> -| Additionally, a 403 Forbidden error was encountered while trying to
> -| use an ErrorDocument to handle the request.
>
>
> If I "Deny from all" the "/" Location, does that mean that I can't
> server the ErrorDocument from there either?

Yah, ok. I thought it wouldn't apply to the subrequest. There are lots
of ways to get around this too, including putting the following AFTER
the first <Location> block:
<Location /underconstruction.html>
Allow from all
</Location>

Joshua.

---------------------------------------------------------------------
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


Mime
View raw message