I have a Jenkins installation which is accessible at localhost:8080
or if accessing externally as website via IPaddress:8080
.
I'd like to access the website with something like IPaddress/jenkins
instead and have IIS know how to redirect to localhost:8080
internally when accessed like that.
This is my web.config file:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(jenkins.*)" />
<action type="Rewrite" url="http://localhost:8080/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Unfortunately, after visiting IPaddress/jenkins
I get an error 404.