Hello, I am trying to use the rewrite and arr modules and am missing something.
I have a website ( stuff.thing.com) that I have forced SSL on using the rewrite. I have a private server (a geoserver) that I'd like to link to in the stuff.thing.com address and still have the same SSL. I'd like stuff.thing.com/gis to relay my from my private
server (lets call it 192.168.1.1:8080). So far I have the force HTTPS rule working fine. When I add the server in ARR it forwards all the traffic to my geoserver. I've tried changing the pattern to stuff.things.com/gis* and nothing gets forwarded to the gis
server anymore. I've tried changing it to /gis and nothing gets forwarded.
I am sure I'm missing something but I'm not good with the rewrite rules.
Let me try to be more specific as to what I am trying to do and what my issue is.
I have a site, stuff.things.com and its running in IIS
I have a private server (the geo server) that is on 192.168.1.2:8080 that serves /geoserver/blah
I need the ARR to redirect everything from 'stuff.things.com/gis' to 192.168.1.2:8080 and strip away the 'stuff.things.com/gis' and leave the rest
I'd like to configure IIS to one SSL cert, the one for stuff.things.com, to be used for all the content.
I hope that makes more sense.
So far I have been able to redirect all traffic to 192.168.1.2:8080.
I have not been able to only redirect the /gis* bit just to that server and the other requests to remain in the stuff.things.com site.
From what I understand, when I set up the private server in the 'server farm' it creates a rule that forwards traffic.
I have created a rule that can filter the url but the rewrite/or ARR does not redirect that portion only. It either sends all traffic there or none of it.
2 Posts
IIS ARR and Rewrite
Dec 18, 2018 05:51 PM|unematt|LINK
Hello, I am trying to use the rewrite and arr modules and am missing something.
I have a website ( stuff.thing.com) that I have forced SSL on using the rewrite. I have a private server (a geoserver) that I'd like to link to in the stuff.thing.com address and still have the same SSL. I'd like stuff.thing.com/gis to relay my from my private server (lets call it 192.168.1.1:8080). So far I have the force HTTPS rule working fine. When I add the server in ARR it forwards all the traffic to my geoserver. I've tried changing the pattern to stuff.things.com/gis* and nothing gets forwarded to the gis server anymore. I've tried changing it to /gis and nothing gets forwarded.
I am sure I'm missing something but I'm not good with the rewrite rules.
Thanks for any help
5276 Posts
MVP
Moderator
Re: IIS ARR and Rewrite
Dec 19, 2018 01:32 AM|Rovastar|LINK
difficult to know exactly what is wrong but
" changing the pattern to stuff.things.com/gis* "
implies you are adding this to the generic pattern match. for this don't use the domain name just the URL stem.
so try just
gis/*
(no proceding /)
if you need to additionally constrain it to the domain name add a condition with {HTTP_HOST} as stuff.things.com
https://www.leansentry.com/
2 Posts
Re: IIS ARR and Rewrite
Dec 19, 2018 07:39 PM|unematt|LINK
Hello,
Let me try to be more specific as to what I am trying to do and what my issue is.
I have a site, stuff.things.com and its running in IIS
I have a private server (the geo server) that is on 192.168.1.2:8080 that serves /geoserver/blah
I need the ARR to redirect everything from 'stuff.things.com/gis' to 192.168.1.2:8080 and strip away the 'stuff.things.com/gis' and leave the rest
I'd like to configure IIS to one SSL cert, the one for stuff.things.com, to be used for all the content.
I hope that makes more sense.
So far I have been able to redirect all traffic to 192.168.1.2:8080.
I have not been able to only redirect the /gis* bit just to that server and the other requests to remain in the stuff.things.com site.
From what I understand, when I set up the private server in the 'server farm' it creates a rule that forwards traffic.
I have created a rule that can filter the url but the rewrite/or ARR does not redirect that portion only. It either sends all traffic there or none of it.