@ -124,21 +124,27 @@ Once all your changes are done, you'll need to run `service apache2 restart` to
## **IIS:**
- _(Below rules DO WORK with OMBI v3 - Edited 22 APR 18 by @seanvree )_
NOTE: There are some extra steps involved with getting IIS to proxy things.< br >
Install these two modules:
- [URL Rewrite ](http://www.iis.net/downloads/microsoft/url-rewrite )
- [Application Request Routing ](https://www.iis.net/downloads/microsoft/application-request-routing )
After installing the above, enable the proxy function via:< br >
IIS admin -> Application Request Routing Cache -> Server Proxy Settings, tick "Enable proxy"
### **IIS With Subfolder:**
- _NOTE1: Below rules assume you have a "virtual directory" named "OMBI" under your default website in IIS. That VD should target a physical directory that resides at c:\inetpub\wwwroot\ombi . Within this directory you would place the below rules in a web.config file. There should be no other files in this directory. (This is/should NOT be your OMBI install directory)_
- _NOTE2: Change "yourdomain.com"_
```
<?xml version="1.0" encoding="UTF-8"?>
```xml
< configuration >
< system.webServer >
< defaultDocument >
< files >
< / files >
< / defaultDocument >
< rewrite >
< rules >
< clear / >
@ -157,16 +163,13 @@ Once all your changes are done, you'll need to run `service apache2 restart` to
< / conditions >
< / rule >
< / rules >
< outboundRules >
< clear / >
< rule name = "Restore Encoding" preCondition = "Restore HTTP_ACCEPT_ENCODING}" enabled = "true" >
< match serverVariable = "HTTP_ACCEPT_ENCODING" pattern = "^(.+)" / >
< conditions logicalGrouping = "MatchAll" trackAllCaptures = "true" / >
< action type = "Rewrite" value = "{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" / >
< / rule >
< rule name = "ReverseProxyOutboundOMBI" preCondition = "ResponseIsHtml1" enabled = "true" stopProcessing = "false" >
< match filterByTags = "A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script" pattern = "^http(s)?://localhost:5000/ombi/(.*)" / >
< conditions logicalGrouping = "MatchAll" trackAllCaptures = "true" >
@ -174,7 +177,6 @@ Once all your changes are done, you'll need to run `service apache2 restart` to
< / conditions >
< action type = "Rewrite" value = "http{R:1}://YOURDOMAIN.com/ombi/{R:2}" / >
< / rule >
< preConditions >
< preCondition name = "ResponseIsHtml1" >
< add input = "{RESPONSE_CONTENT_TYPE}" pattern = "^text/html" / >
@ -183,7 +185,6 @@ Once all your changes are done, you'll need to run `service apache2 restart` to
< add input = "{RESPONSE_CONTENT_TYPE}" pattern = ".+" / >
< / preCondition >
< / preConditions >
< / outboundRules >
< / rewrite >
< security >
@ -200,44 +201,36 @@ Once all your changes are done, you'll need to run `service apache2 restart` to
- _NOTE2: Change "yourdomain.com"_
- _NOTE 3: Change "ombi_ip:port" to whatever your local address for Ombi is._
- _NOTE 4: Be sure you set your application URL in Ombi to whatever your site in IIS is listening to._
```
<?xml version="1.0" encoding="UTF-8"?>
```xml
< configuration >
< system.webServer >
< rewrite >
< rules >
< rule name = "HTTP to HTTPS redirect" stopProcessing = "true" >
< match url = "(.*)" / >
< conditions >
< add input = "{HTTPS}" pattern = "off" ignoreCase = "true" / >
< / conditions >
< action type = "Redirect" redirectType = "Found" url = "https://{HTTP_HOST}/{R:1}" / >
< / rule >
< rule name = "AddTrailingSlashRule1" stopProcessing = "true" enabled = "false" >
< match url = "(.*[^/])$" / >
< conditions >
< add input = "{REQUEST_FILENAME}" matchType = "IsDirectory" negate = "true" / >
< add input = "{REQUEST_FILENAME}" matchType = "IsFile" negate = "true" / >
< / conditions >
< action type = "Redirect" url = "{R:1}/" / >
< / rule >
< rule name = "RP_Ombi" stopProcessing = "true" >
< rule name = "HTTP to HTTPS redirect" stopProcessing = "true" enabled = "false" >
< match url = "(.*)" / >
< conditions >
< add input = "{HTTPS}" pattern = "off" ignoreCase = "true" / >
< / conditions >
< action type = "Redirect" redirectType = "Found" url = "https://{HTTP_HOST}/{R:1}" / >
< / rule >
< rule name = "RP_Ombi" enabled = "true" stopProcessing = "true" >
< match url = "(.*)" / >
< action type = "Rewrite" url = "http:// ombi_IP:port /{R:1}" / >
< action type = "Rewrite" url = "http://localhost:5000/{R:1}" / >
< serverVariables >
< / serverVariables >
< / rule >
< / rules >
< outboundRules >
< clear / >
< preConditions >
< preCondition name = "Restore HTTP_ACCEPT_ENCODING}" >
< add input = "{RESPONSE_CONTENT_TYPE}" pattern = ".+" / >
< / preCondition >
< / preConditions >
< / outboundRules >
< / rewrite >
< / system.webServer >
< outboundRules >
< clear / >
< preConditions >
< preCondition name = "Restore HTTP_ACCEPT_ENCODING}" >
< add input = "{RESPONSE_CONTENT_TYPE}" pattern = ".+" / >
< / preCondition >
< / preConditions >
< / outboundRules >
< / rewrite >
< / system.webServer >
< / configuration >
```
***