httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] proxypass only https
Date Fri, 16 Apr 2010 14:58:54 GMT
On Fri, Apr 16, 2010 at 10:56 AM, Michael Ni <michaelcni@gmail.com> wrote:
> anyone know how can i do a
>
> ProxyPass     /foo/        http://foo.bar.com
>
> but only where protocol is http and not https?
>
>
> so
> http://www.apache.org/foo/     would proxy to      http://foo.bar.com
>
> but https://www.apache.org/foo/ would be denied
>
> i looked at ProxyPassMatch, but it didn't seem right.
>

Put your ProxyPass rules in your HTTP-only virtual-host. If you're
using a vhost for SSL and the base config for HTTP, create a
<virtualhost *:80> and use move your ProxyPass into it.

-- 
Eric Covener
covener@gmail.com

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


Mime
View raw message