ElHaix
ElHaix

Reputation: 12986

How to setup a maintenance page for all sites in IIS without a load balancer?

When performing maintenance on our test server, I would like to simply redirect all traffic to all sites on the server to say the site's default site, where I have a maintenance page setup.

How can this be quickly accomplished?

Upvotes: 0

Views: 6589

Answers (1)

RLeisinger
RLeisinger

Reputation: 218

I use a line in the sites web.config like this httpRedirect enabled="false" destination="http://someothersite.com/maintenance.htm" exactDestination="true" httpResponseStatus="Temporary"

inside the system.webServer

When you need to go to maintenance mode, switch 'false' to 'true' and all traffic to the site will be directed to the http://someothersite.com/maintenance.htm

Upvotes: 2

Related Questions