Re: ProxyPass per IP/Net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, it's possible.


1) You can use mod_rewrite for that, for example, i think:

RewriteCond %{REMOTE_HOST}  =host1
RewriteRule ^/mysite http://server1/ [NC,P,L]

RewriteCond %{REMOTE_HOST}  =host2
RewriteRule ^/mysite http://server2/ [NC,P,L]


2) Also, you can play with SetEnvIf:

SetEnvIF Remote_Addr "^192\.168\." user=lan

RewriteCond %{ENV:user} =lan
RewriteRule ^/mysite http://server1/ [NC,P,L]

# fallback
RewriteRule ^/mysite http://server2/ [NC,P,L]



Be careful, i don't test it.



El 08/09/11 13:59, Helmut Schneider escribió:
> Hi,
> 
> is it possible to serve certain resources by IP/Net? Like bind's
> views[1]? I'm ProxyPass'ing content and would like to serve different
> content for external and internal users. Currently I'm unable to solve
> the "problem" on the proxied apache.

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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux