Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use rewriterule with SSL?

Status
Not open for further replies.

FastMan

IS-IT--Management
Nov 6, 2002
1
CH
Hello

I would like to make a connection through an Apacheserver to another servers using SSL.

Using http and RewriteRule everthing works fine:
"RewriteRule ^/Proposal(.*)$ [P]"

When I convert the RewriteRule to https:
"RewriteRule ^/Proposal(.*)$ [P]"
it doesn`t work.

I tried it also adding:
"RewriteCond %{SERVER_PORT} !^443$"
but it did not work.

Is there a 'realworld' version of an httpd.conf/ssl.conf?

charly007

p.s.:
Apachelog-error:

"go-ahead with proxy request proxy: [OK]

init rewrite engine with requested uri /error/HTTP_INTERNAL_SERVER_ERROR.html.var"
 
That's because you're trying to proxy data through Apache via HTTPS and send it to a browser that is expecting HTTP.

Even if Apache could internally proxy HTTPS, it seems to me that it would be a major violation of the security of communications. ______________________________________________________________________
TANSTAAFL!
 
Thank you for the answer.

My aim is to allow only https-requests from the client. The user should use 'This request should then be translated into
' and viceversa.
The apache is already ssl-enabled (i can get the
apache-docu using ssl), but the rewrite does not work.
 
In order to do HTTPS to HTTPS internal proxy, the only mention I have seen is when using mod_ssl, that module adds the functionality for proxying SSL to mod_proxy.

Take a look at the configuration directives in the mod_ssl section of the Apache 2.0 online documentation. ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top