On 9/27/07, gb1071nx <gb1071nx@xxxxxxxxxxxxxxxxxxxxx> wrote: > > I've looked at the deny/allow but that doesn't seem really right. I > don't want to deny access to a vhost, if you're from the internet. I > want to change what you're seeing. > > My scenario is that I'm doing maintenance on a website, and so I still > need to be able to access it from "inside the building", but everyone > else in the world should see a temporary page stating "the site is down > for maintenance". > > I'm just not finding the right part of the docs, I think. Can anyone > give a hint? 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> Alternatively, you could use mod_rewrite, or, if you dedicate a different IP address to the server for intranet and internet connections, you could put each in a different <VirtualHost>. 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx