Apache Server configuration support - different targets for different areas

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > November 2006 > different targets for different areas





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author different targets for different areas
Moser Ludwig

2006-11-27, 1:19 pm

hello NG!

is it possible to redirect people from LAN
IP is like 10.0.0.x to an specific subdirectory of my apache?
and all others access the root direcotry?

thanks in advance
ludwig moser


shimmyshack

2006-11-27, 7:27 pm


Moser Ludwig wrote:
> hello NG!
>
> is it possible to redirect people from LAN
> IP is like 10.0.0.x to an specific subdirectory of my apache?
> and all others access the root direcotry?
>
> thanks in advance
> ludwig moser


a variant of the rules given on this page of the docs
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html


RewriteCond %{REMOTE_ADDR} ^10\.10\.10\.
RewriteRule ^/?$ /directory/ [L]

should do it.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com