| Author |
|
wischmidt Newbie

Joined: 14 July 2008
Online Status: Offline Posts: 23
|
| Posted: 16 July 2008 at 6:30am | IP Logged
|
|
|
Please help me, how can I do this? A Webserver MS IIS should work as a reverse proxy server and answer all requests to xx.xx.27.32 with sides from server (ibm http) xx.xx.75.106. The communication between this two servers should running through ssl.
I have tested this and a lot of other terms with no success:
RewriteCond %HTTPS(on)|.* RewriteCond %{SERVER_PORT} 443 RewriteRule (.*) https\://xx.xx.73.106$1 [P,L] this RewriteProxy (.*) http\://xx.xx.73.106$1 [I,R] or this RewriteRule (.*) http(?1s:)\://xx.xx.73.106$1 [I,P]
thank you
|
| Back to Top |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Online Posts: 428
|
| Posted: 16 July 2008 at 7:10am | IP Logged
|
|
|
Hi wischmidt!
Please try the following solution:
Code:
RewriteBase /
RewriteCond %{HTTPS} on
RewriteCond %{SERVER_PORT} 443
RewriteCond %{HTTP_HOST} ^xx\.xx\.27\.32$
RewriteProxy (.*) https://xx.xx.75.106/$1 |
|
|
__________________ Kind regards!
Vyacheslav.
|
| Back to Top |
|
| |
wischmidt Newbie

Joined: 14 July 2008
Online Status: Offline Posts: 23
|
| Posted: 16 July 2008 at 7:38am | IP Logged
|
|
|
Thank you, but I still get the error 500
|
| Back to Top |
|
| |
Vyacheslav Moderator Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Online Posts: 428
|
| Posted: 16 July 2008 at 7:53am | IP Logged
|
|
|
Ok. Please provide your rewrite.log and error.log.
__________________ Kind regards!
Vyacheslav.
|
| Back to Top |
|
| |
wischmidt Newbie

Joined: 14 July 2008
Online Status: Offline Posts: 23
|
| Posted: 16 July 2008 at 10:43am | IP Logged
|
|
|
Sorry, but I think I have posted in the wrong forum and very
ashamed. we have isapi_rewrite 2.x and therefore no rewrite.log
and error.log is available, for this version certainly do I need other parameters.
Sorry for that.
|
| Back to Top |
|
| |
Yaroslav Moderator Group

Joined: 15 August 2002
Online Status: Offline Posts: 6449
|
| Posted: 17 July 2008 at 5:40am | IP Logged
|
|
|
To run communication through SSL you need to add remote certificate to the globally trusted list on proxy machine (done through Internet Explorer settings for example).
And disable friendly error messages to see real error text returned by proxy module.
__________________ Yaroslav Govorunov,
Helicon Tech
|
| Back to Top |
|
| |
wischmidt Newbie

Joined: 14 July 2008
Online Status: Offline Posts: 23
|
| Posted: 17 July 2008 at 7:04am | IP Logged
|
|
|
Thank you, for helping me it works, I have copied the certificate to the globally trusted list on proxy computer, and adappted the terms for isapi_rewrite2 in httpd.ini
RewriteCond Host: ^xx\.xx\.27\.32:?.* RewriteProxy (.*) https\://xx.xx.73.106/$1 [C] RewriteRule (.*) / [F,I,O]
|
| Back to Top |
|
| |