Can I proxy SSL with mod_rewrite ? How ?

Can I proxy SSL with mod_rewrite ? How ?

Post by Stanley Hopcrof » Tue, 04 May 1999 04:00:00



Dear Ladies and Gentlemen,

I am writing to ask

1 Is it possible to use mod_rewrite to proxy incoming SSL requests to an
internal (behing firewall) server

2 If so, please would you suggest a mod_rewrite rule and any other
configuration directives I need.

Mod_rewrite does a wonderful job of rewriting for http URLs for proxying.

Here is the proxy config I have tried with apache 1.3.4

ProxyRequests On

ProxyRemote http://tsitc:443  http://tsitc:443

<VirtualHost pericles.IPAustralia.gov.au>

DocumentRoot /www/data
ServerName pericles.IPAustralia.gov.au
Rewri*gine on
TransferLog logs/pericles-ssl.IPAustralia.gov.au-access_log
ErrorLog logs/pericles-ssl.IPAustralia.gov.au-error_log
RewriteLog logs/pericles-ssl.IPAustralia.gov.au-rewrite
#RewriteLog /dev/null
RewriteLogLevel 10
#RewriteLogLevel 0
RewriteRule ^/(.*) http://tsitc:443/$1 [proxy]
</VirtualHost>

access log

202.14.186.191 - - [04/May/1999:06:58:25 +1000] "?[`b" 403 -

rewrite

202.14.186.191 - - [04/May/1999:06:58:25 +1000] [pericles.IPAustralia.gov.au/sid#8057c][rid#91034/initial] (2) forcing proxy-throughput with http://tsitc:443/
202.14.186.191 - - [04/May/1999:06:58:25 +1000] [pericles.IPAustralia.gov.au/sid#8057c][rid#91034/initial] (1) go-ahead with proxy request proxy:http://tsitc:443/ [OK]

error

httpd: [Tue May  4 06:58:25 1999] [error] [client 202.14.186.191] client denied by server configuration: proxy:http://tsitc:443/

Your help will be greatly appreciated.

Thank you,

Yours sincerely.

--

Stanley Hopcroft
Network Specialist
IP Australia

+61 2 6283 3189
+61 2 6281 1353 FAX

 
 
 

1. Mod_Rewrite, Proxy, and SSL

We are running Apache 1.3.11 with mod_rewrite, mod_proxy and Raven SSL
1.42.  We are need the functionality to essentially do a ProxyPass on a
url through the proxy to another address on a backend web server.  We
have this working with SSL using both ProxyPass and a RewriteRule.
However, it appears that there is only one connection being opened to
the backend web server at a time.  This makes the connection extremely
slow.  When we turn off SSL and try it, everything passes fine, and we
have a number of connections to the backend open without problems.  Has
anyone else experienced this and found a resolution?  Thanks.

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Man Pages Reference

3. Canned Proxy URLs to Filter

4. S3Trio64 V2/DX graphics card

5. SSL proxy for clients uncapable of SSL

6. Question on RCS and groups

7. SSL -> [Apache] -> proxy gateway -> No-SSL

8. FVWM won't shut down!

9. Proxy over Proxy - SSL possible?

10. Apache: mod_rewrite vs SSL, which happens first?

11. mod_rewrite and ssl

12. mod_rewrite: https ---> https (to correct ssl vhost)

13. Does mod_rewrite work with SSL?