You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Todd Simons <ts...@delphi-tech.com> on 2009/03/05 00:24:24 UTC

[users@httpd] RE: [dtiSPAM] - Re: [users@httpd] MOD_PROXY Reverse Proxy - control URI access byclient IP Address - Email has different SMTP TO: and MIME TO: fields in the email addresses

Please confirm:

<location /dev3/app2>
	Allow from 10.3.2.0/24
	ProxyPass /dev3/app2/ http://internalhost3/dev3/app2/
	ProxyPassReverse /dev3/app2/ http://internalhost3/dev3/app2/
</location>

...when I made this modification, my apache fails to start

-----Original Message-----
From: Peter Schober [mailto:peter.schober@univie.ac.at] 
Sent: Wednesday, March 04, 2009 5:59 PM
To: users@httpd.apache.org
Subject: [dtiSPAM] - Re: [users@httpd] MOD_PROXY Reverse Proxy - control
URI access byclient IP Address - Email has different SMTP TO: and MIME
TO: fields in the email addresses

* Todd Simons <ts...@delphi-tech.com> [2009-03-04 22:41]:
> We'd like to utilize one public hostname
"http://webservers.domain.com"
> to rewrite different web apps, but control the access to the web app
by
> ip address, similar to an "allow from" on a directory.

You could wrap the ProxyPasses in <Location> elements and put the
'Allow from 10.5.1.0/24' etc. in there. See the end of the ProxyPass
directive docs at
http://httpd.apache.org/docs/2.2/en/mod/mod_proxy.html#proxypass
Proceed likewise for ProxyPassReverse.

cheers,
-peter

---------------------------------------------------------------------
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-help@httpd.apache.org


## Scanned by Delphi Technology, Inc. ##

---------------------------------------------------------------------
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] RE: [dtiSPAM] - Re: [users@httpd] MOD_PROXY Reverse Proxy - control URI access byclient IP Address - Email has different SMTP TO: and MIME TO: fields in the email addresses

Posted by Peter Schober <pe...@univie.ac.at>.
* Todd Simons <ts...@delphi-tech.com> [2009-03-05 00:25]:
> Please confirm:
> 
> <location /dev3/app2>
> 	Allow from 10.3.2.0/24
> 	ProxyPass /dev3/app2/ http://internalhost3/dev3/app2/
> 	ProxyPassReverse /dev3/app2/ http://internalhost3/dev3/app2/
> </location>
> 
> ...when I made this modification, my apache fails to start

Make sure you use `apachectl -t` to test your config.
And that's now how it works:

> See the end of the ProxyPass directive docs at
> http://httpd.apache.org/docs/2.2/en/mod/mod_proxy.html#proxypass

where it says:

  "When used inside a <Location> section, the first argument is
  omitted and the local directory is obtained from the <Location>."

cheers,
-peter

-- 
peter.schober@univie.ac.at - vienna university computer center
Universitaetsstrasse 7, A-1010 Wien, Austria/Europe
Tel. +43-1-4277-14155, Fax. +43-1-4277-9140

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