Moderator: moderators
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Subsonic Inbound Rule" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://localhost:4040/{R:1}" />
</rule>
</rules>
<outboundRules>
<rule name="Subsonic Outbound Rule">
<match filterByTags="A" pattern="localhost:4040/(.*)" />
<action type="Rewrite" value="http://server/subsonic/{R:1}" />
</rule>
</outboundRules>
</rewrite>
</system.webServer>
</configuration>
<rule name="MediaWiki Rewrite">
<match url="^subsonic(.*)" ignoreCase="false" />
<action type="Rewrite" url="http://otherserver/{R:1}" />
</rule>
Drashna wrote:
- Code: Select all
<rule name="MediaWiki Rewrite">
<match url="^subsonic(.*)" ignoreCase="false" />
<action type="Rewrite" url="http://otherserver/{R:1}" />
</rule>
I think you'd want something like this, and just this. At least, that's what is used for my wiki installation, and it seems to work.
Unfortunately, i'm not an expert with the URL rewriting stuff, especially for IIS.
http://server/subsonic/(.*) --1--> http://localhost:4040/(.*) --2--> http://server/subsonic/(.*)
Inbound Rewrite Outbound Rewrite and ???
Users browsing this forum: No registered users and 2 guests