"Use IIS as reverse proxy" sample problems
5 posts
• Page 1 of 1
"Use IIS as reverse proxy" sample problems
I follow this sample and test on my server, It works, But it acted like Redirect rather than Rewrite
When a client request hit the rule, it will redirect to the destination, and show the real URL (destination URL) to the user.
Why's that?
Re: "Use IIS as reverse proxy" sample problems
Ohh i see.
In errorlog, it says: Flag [P] require Full version of ISAPI_Rewrite
Have a try with trial version later.
Thanks for your reply
In errorlog, it says: Flag [P] require Full version of ISAPI_Rewrite
Have a try with trial version later.
Thanks for your reply
Re: "Use IIS as reverse proxy" sample problems
I have the trial version of ISAPI_Rewrite 3.0. I am also trying to do reverse proxy in IIS.
I am trying to reverse proxy to a site on the same server but am having no luck and I believe I don't understand what is needed.
The first site is on port 8080 but the second site will be on port 80. I have tried the following but just not working nor do I really understand the syntax.
RewriteEngine on
RewriteBase /
RewriteRule ^win2008-002:8080(.+)$ http://win2008$1 [NC,P]
Am I missing something? is there a list of config files anywhere that I can use to help guide me on this?
Thanks in advance.
I am trying to reverse proxy to a site on the same server but am having no luck and I believe I don't understand what is needed.
The first site is on port 8080 but the second site will be on port 80. I have tried the following but just not working nor do I really understand the syntax.
RewriteEngine on
RewriteBase /
RewriteRule ^win2008-002:8080(.+)$ http://win2008$1 [NC,P]
Am I missing something? is there a list of config files anywhere that I can use to help guide me on this?
Thanks in advance.
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: "Use IIS as reverse proxy" sample problems
Hello,
For the Host you need to create a separate rule:
Regards
Andrew
For the Host you need to create a separate rule:
- Code: Select all
RewriteCond %{HTTP:Host} ^win2008-002:8080$ [NC]
RewriteRule ^(.+)$ http://win2008/$1 [NC,P]
Regards
Andrew
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests