Adding app_offline.htm to the root of your .net application automatically shuts it down. Very nice for putting up a quick maintenance page.
All the junk I have in my head
Adding app_offline.htm to the root of your .net application automatically shuts it down. Very nice for putting up a quick maintenance page.
WordPress was installed on a windows machine and recently started getting this error. Seems that the web.config was modified.
To fix the error above I updated the web.config to look like this and it fixed the problem.
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Good article on configuring IIS logs to track the IP address of the client rather than the load balancer IP address.
https://www.loadbalancer.org/blog/iis-and-x-forwarded-for-header/
I had a problem with a WordPress website that I recently moved to a new server running PHP 5.4 and IIS. I found that the fix to my problem was in the wp-config.php file. I had to change the hostname of the MySQL db from localhost to 127.0.0.1. Maybe this is an issue with IPv6 being enabled on the server. I’ll try and look at that later.
From…
/** MySQL hostname */ define('DB_HOST', 'localhost');
To…
/** MySQL hostname */ define('DB_HOST', '127.0.0.1');