You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Helmut Schneider <ju...@gmx.de> on 2011/09/08 18:59:13 UTC
[users@httpd] ProxyPass per IP/Net
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.
Thanks, Helmut
[1]
http://www.oreillynet.com/pub/a/oreilly/networking/news/views_0501.html
---------------------------------------------------------------------
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
[users@httpd] Re: ProxyPass per IP/Net
Posted by Helmut Schneider <ju...@gmx.de>.
Mario A. del Riego wrote:
> El 08/09/11 13:59, Helmut Schneider escribió:
> > 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.
[...]
> RewriteRule ^/mysite http://server1/ [NC,P,L]
Works like a charm.
Thanks Helmut
---------------------------------------------------------------------
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
Re: [users@httpd] ProxyPass per IP/Net
Posted by "Mario A. del Riego" <de...@fing.edu.uy>.
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org