Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

Need webconfig for server 2016 IIS

AegerAeger New
edited September 2017 in Vanilla 2.0 - 2.3

Did a fresh install of Vanilla as a Plesk application. It installed Vanilla 2.0.17.10 and I found a web.config that worked fine on that version. After uploading 2.3 I wasn't even able to run the upgrade. Getting error 500 and 404 messing with the config file. Does anyone have a updated web.config that will work with Windows server 2016 and IIS?

This config below worked on 2.0

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
          <rules>
            <rule name="Vanilla Rule 1" stopProcessing="true">
              <match url="^(.*)$" ignoreCase="false" />
              <conditions logicalGrouping="MatchAll">
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              </conditions>
              <action type="Rewrite" url="index.php\?p={R:1}" appendQueryString="true" />
            </rule>
          </rules>
        </rewrite>
    </system.webServer>
</configuration>

Comments

Sign In or Register to comment.