You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Keith Hamilton <kh...@ex-cell.com> on 2003/04/11 22:22:46 UTC
[users@httpd] Outside IP?
Is there a way to have apache goto a different webpage if an outside IP
address is detected?
-- Keith
----------------------
Keith Hamilton
Information Technology
EX-CELL Metal Products
(800) EX-CELL-7 x121
----------------------
Re: [users@httpd] Outside IP?
Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 11 Apr 2003, Keith Hamilton wrote:
> Is there a way to have apache goto a different webpage if an outside IP
> address is detected?
Yes, using mod_rewrite:
RewriteEngine On
RewriteCond %{REMOTE_ADDR} some-regex
RewriteRule .* /some/page.
See the mod_rewrite docs, and plan to spend some time digesting them.
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