IIS Reverse Proxy Module 500 error when going to PHP backend

2013-05-13 / IIS, Server / 1 Comments

When setting up IIS reverse Proxy to connect back to a linux PHP application the site would not load and IIS would throw a 500 error. When browsing to the PHP site from the IIS server manually no errors and connectivity was working fine.

I missed an option in the web.config file for the PHP pattern “pattern=”^text/php”” :

<?xml version="1.0" encoding="UTF-8"?>
          <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
            <match filterByTags="A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script" pattern="^http(s)?://10.0.xxx.81/(.*)" />
            <action type="Rewrite" value="http{R:1}://www.xxxx.com/{R:2}" />
            <preCondition name="ResponseIsHtml1">
              <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
	      <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/php" />
                <clear />
                <rule name="index" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" />
                    <action type="Redirect" url="http://www.xxxx.com/xx/slovenia/index.php" />
                <rule name="ReverseProxyInboundRule1" patternSyntax="ECMAScript" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions logicalGrouping="MatchAny" trackAllCaptures="false">
                    <action type="Rewrite" url="http://10.0.xxx.81/bd/slovenia/{R:0}" />
Read More

Remove .ashx extension from sitecore media file links

2013-01-30 / IIS, Random / 3 Comments


When clicking on a linked PDF document or any media file sitecore added .ashx extension to the linked file. This caused issues with some browsers and OS versions not knowing what to do the file.



Let the uploaded file present its original extension.

Modify the web.config file and look for

<setting name=”Media.RequestExtension” value=”ashx” />

change the setting to

<setting name=”Media.RequestExtension” value=”” />

Read More

ISS Kerberos Test Tool

2010-03-16 / IIS / 1 Comments

This tool is used to test kerberos configuration on ISS and verifies correct SPN settings.

1. Unzip files to desired location that is local to the IIS server.
2. In the IIS MMC create a new virtual directory that points to the folder with the unzipped files.
3. Configure the virtual directory as an IIS application
    a. In the IIS MMC right-click the vDir and choose Properties.
    b. On the “Virtual Directory” tab click “Create” (if already configured as an IIS app you’ll see a “Remove” button instead)
4. Ensure that “Scripts Only” (recommended) or “Scripts and Executables” is enabled for this vDir.

Kerberos Test web Application

UserInfo Report Definition – Test Report to verify Kerberos is connecting to the back end database/report server.

Read More

Windows Server 2008 IIS Certificate Settings

2010-03-05 / IIS, Server / 0 Comments

Certificates are now configured and installed under the main server site as show below:

Read More