wordpress - Reverse proxy from IIS 8.5 to an azure website -
i have vm in azure iis, i'm running website in vm let's mysite.com not i'd have blog in directory within website, blog wordpress site hosted separately in azure website http://siteblog.azurewebsites.net
i've done reverse proxy 2 rules in iis, issue outbound rule, following error:
outbound rewrite rules cannot applied when content of http response encoded ("gzip").
searching on google found article , 2 questions 1,2 of them practically apply same approach.
according article, have add key windows registry far know isn't possible.
on machine running web site, command line run: reg add hkey_local_machine\software\microsoft\inetstp\rewrite /v logrewrittenurlenabled /t reg_dword /d 0 may need follow iisreset
my rules in iis web.config:
<rewrite> <outboundrules> <rule name="reverseproxyoutboundrule1" precondition="responseishtml1" stopprocessing="false"> <match filterbytags="a, area, base, form, img, link" pattern="^http(s)?://mseblog.azurewebsites.net/(.*)" /> <action type="rewrite" value="http{r:1}://mysite.com/{r:2}" /> </rule> <preconditions> <precondition name="responseishtml1"> <add input="{response_content_type}" pattern="^text/html" /> </precondition> </preconditions> </outboundrules> <rules> <rule name="reverseproxyinboundrule1" stopprocessing="true"> <match url="(.*)" /> <conditions> <add input="{cache_url}" pattern="^(https?)://" /> </conditions> <action type="rewrite" url="{c:1}://siteblog.azurewebsites.net/{r:1}" logrewrittenurl="false" /> </rule> </rules> </rewrite>
questions:
- how can fix error?
- any other approach besides using url rewriting or reverse proxy?
Comments
Post a Comment