473,786 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS Redirect for Maintenance

Hello - we have an ecommerce application that needs to come down for
maintenance. The application is normally only accessed via
http://www.mydomain.com/virtualdir/aspfile.asp.

I'm using W2K Advanced Server/SP4.

I would like to create a generic HTML page that can easily be put on the IIS
server to redirect all users that access any files on this domain to my
maintenance page.

Originally, I thought I could create a directory called "maint" or whatever
from root and from the "Directory" tab within IIS Manager, change the URL to
redirect to a specific page and set the checkbox (directory below current or
whatever). This appears to work, as long as no virtualdirector or specific
ASP file is referenced at the end of the URL.

Does anyone know the best way to handle this without making a bunch of
permanent changes? My site will be down about 6 hours and I need a
maintenance page to display during this period.

BTW, I do have other banking sites that have their own logon/password form
on their site. Their sites <FORM> action attribute points to my server.

Any help would be appreciated.
Jul 22 '05 #1
9 13942
Depends what you mean by the site being down - will the IIS box itself be
down altogether, or are you just making a bunch of changes the content
files?

it's possible to have a secondary site on the same box which takes over from
the first when you stop the first one, or you can swap out for another box,
or some network infrastructures can fail over if your web server is out and
deliver a 'sorry' page. there are even ways this can be done in ASP or
ASP.NET. depends what you want
--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.

"dm4714" <sp**@spam.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hello - we have an ecommerce application that needs to come down for
maintenance. The application is normally only accessed via
http://www.mydomain.com/virtualdir/aspfile.asp.

I'm using W2K Advanced Server/SP4.

I would like to create a generic HTML page that can easily be put on the
IIS server to redirect all users that access any files on this domain to
my maintenance page.

Originally, I thought I could create a directory called "maint" or
whatever from root and from the "Directory" tab within IIS Manager, change
the URL to redirect to a specific page and set the checkbox (directory
below current or whatever). This appears to work, as long as no
virtualdirector or specific ASP file is referenced at the end of the URL.

Does anyone know the best way to handle this without making a bunch of
permanent changes? My site will be down about 6 hours and I need a
maintenance page to display during this period.

BTW, I do have other banking sites that have their own logon/password form
on their site. Their sites <FORM> action attribute points to my server.

Any help would be appreciated.

Jul 22 '05 #2
The host system (mainframe) will be down. So IIS will still be up.

The site uses only https for access.

I'm not sure by creating another site. I cannot change IP or anything and
I'm using certificates.
"Jason Brown [MSFT]" <i-******@online.m icrosoft.com> wrote in message
news:Ot******** ******@tk2msftn gp13.phx.gbl...
Depends what you mean by the site being down - will the IIS box itself be
down altogether, or are you just making a bunch of changes the content
files?

it's possible to have a secondary site on the same box which takes over
from the first when you stop the first one, or you can swap out for
another box, or some network infrastructures can fail over if your web
server is out and deliver a 'sorry' page. there are even ways this can be
done in ASP or ASP.NET. depends what you want
--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.

"dm4714" <sp**@spam.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hello - we have an ecommerce application that needs to come down for
maintenance. The application is normally only accessed via
http://www.mydomain.com/virtualdir/aspfile.asp.

I'm using W2K Advanced Server/SP4.

I would like to create a generic HTML page that can easily be put on the
IIS server to redirect all users that access any files on this domain to
my maintenance page.

Originally, I thought I could create a directory called "maint" or
whatever from root and from the "Directory" tab within IIS Manager,
change the URL to redirect to a specific page and set the checkbox
(directory below current or whatever). This appears to work, as long as
no virtualdirector or specific ASP file is referenced at the end of the
URL.

Does anyone know the best way to handle this without making a bunch of
permanent changes? My site will be down about 6 hours and I need a
maintenance page to display during this period.

BTW, I do have other banking sites that have their own logon/password
form on their site. Their sites <FORM> action attribute points to my
server.

Any help would be appreciated.


Jul 22 '05 #3
hmm... given that it's HTTPs, slight problem there. Can you just change the
home directory to point to a different, empty folder and add a custom 404
which points to an 'undergoing maintentance' page?
--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.

"dm4714" <sp**@spam.ne t> wrote in message
news:uz******** ******@TK2MSFTN GP15.phx.gbl...
The host system (mainframe) will be down. So IIS will still be up.

The site uses only https for access.

I'm not sure by creating another site. I cannot change IP or anything and
I'm using certificates.
"Jason Brown [MSFT]" <i-******@online.m icrosoft.com> wrote in message
news:Ot******** ******@tk2msftn gp13.phx.gbl...
Depends what you mean by the site being down - will the IIS box itself be
down altogether, or are you just making a bunch of changes the content
files?

it's possible to have a secondary site on the same box which takes over
from the first when you stop the first one, or you can swap out for
another box, or some network infrastructures can fail over if your web
server is out and deliver a 'sorry' page. there are even ways this can be
done in ASP or ASP.NET. depends what you want
--
Jason Brown
Microsoft GTSC, IIS

This posting is provided "AS IS" with no warranties, and confers no
rights.

"dm4714" <sp**@spam.ne t> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hello - we have an ecommerce application that needs to come down for
maintenance. The application is normally only accessed via
http://www.mydomain.com/virtualdir/aspfile.asp.

I'm using W2K Advanced Server/SP4.

I would like to create a generic HTML page that can easily be put on the
IIS server to redirect all users that access any files on this domain to
my maintenance page.

Originally, I thought I could create a directory called "maint" or
whatever from root and from the "Directory" tab within IIS Manager,
change the URL to redirect to a specific page and set the checkbox
(directory below current or whatever). This appears to work, as long
as no virtualdirector or specific ASP file is referenced at the end of
the URL.

Does anyone know the best way to handle this without making a bunch of
permanent changes? My site will be down about 6 hours and I need a
maintenance page to display during this period.

BTW, I do have other banking sites that have their own logon/password
form on their site. Their sites <FORM> action attribute points to my
server.

Any help would be appreciated.



Jul 22 '05 #4
On Tue, 1 Mar 2005 23:26:04 -0600, "dm4714" <sp**@spam.ne t> wrote:
Hello - we have an ecommerce application that needs to come down for
maintenance. The application is normally only accessed via
http://www.mydomain.com/virtualdir/aspfile.asp.

I'm using W2K Advanced Server/SP4.
Create a basic asp index page with redirects. Make it the only
default doc in iis.

John Cesta

The CPU Checker - Monitors your CPU % while you sleep
LogFileManager - IIS LogFile Management Tool
WebPageChecker - Helps Maintain Server UpTime
DomainReportIt PRO - Helps Rebuild IIS
http://www.serverautomationtools.com
I would like to create a generic HTML page that can easily be put on the IIS
server to redirect all users that access any files on this domain to my
maintenance page.

Originally, I thought I could create a directory called "maint" or whatever
from root and from the "Directory" tab within IIS Manager, change the URL to
redirect to a specific page and set the checkbox (directory below current or
whatever). This appears to work, as long as no virtualdirector or specific
ASP file is referenced at the end of the URL.

Does anyone know the best way to handle this without making a bunch of
permanent changes? My site will be down about 6 hours and I need a
maintenance page to display during this period.

BTW, I do have other banking sites that have their own logon/password form
on their site. Their sites <FORM> action attribute points to my server.

Any help would be appreciated.


Jul 22 '05 #5
> Create a basic asp index page with redirects. Make it the only
default doc in iis.

Another thing to maybe try is to create a web page for setting the
Maintenance on/off and read that in the index page. If you plan on doing
maintenance periodically, this will save you the maintenance hassles in the
future.
Jul 22 '05 #6
Have you tried to use "The exact URL entered above" and type the full URL
to the file (not folder)?

Also see:
http://support.microsoft.com/?id=313074
--
Regards,
Kristofer Gafvert
www.gafvert.info - My Articles and help
www.ilopia.com
dm4714 wrote:
Hello - we have an ecommerce application that needs to come down for
maintenance. The application is normally only accessed via
http://www.mydomain.com/virtualdir/aspfile.asp.

I'm using W2K Advanced Server/SP4.

I would like to create a generic HTML page that can easily be put on the IIS server to redirect all users that access any files on this domain to my
maintenance page.

Originally, I thought I could create a directory called "maint" or whatever from root and from the "Directory" tab within IIS Manager, change the URL to redirect to a specific page and set the checkbox (directory below current or whatever). This appears to work, as long as no virtualdirector or specific ASP file is referenced at the end of the URL.

Does anyone know the best way to handle this without making a bunch of
permanent changes? My site will be down about 6 hours and I need a
maintenance page to display during this period.

BTW, I do have other banking sites that have their own logon/password form on their site. Their sites <FORM> action attribute points to my server.

Any help would be appreciated.

Jul 22 '05 #7
Gazing into my crystal ball I observed "dm4714" <sp**@spam.ne t> writing
in news:#9******** ******@TK2MSFTN GP12.phx.gbl:
Hello - we have an ecommerce application that needs to come down for
maintenance. The application is normally only accessed via
http://www.mydomain.com/virtualdir/aspfile.asp.

I'm using W2K Advanced Server/SP4.

I would like to create a generic HTML page that can easily be put on
the IIS server to redirect all users that access any files on this
domain to my maintenance page.

Originally, I thought I could create a directory called "maint" or
whatever from root and from the "Directory" tab within IIS Manager,
change the URL to redirect to a specific page and set the checkbox
(directory below current or whatever). This appears to work, as long
as no virtualdirector or specific ASP file is referenced at the end of
the URL.

Does anyone know the best way to handle this without making a bunch of
permanent changes? My site will be down about 6 hours and I need a
maintenance page to display during this period.

BTW, I do have other banking sites that have their own logon/password
form on their site. Their sites <FORM> action attribute points to my
server.

Any help would be appreciated.


If you have a common include file in all your documents, it's pretty
simple. Create a maintenance.htm l and offline.asp . In offline.asp just:

<% dim offline
dim redirect

offline = false
redirect = "maintenance.ht ml"

if offline = true then
response.redirc t redirect
end if
%>

Then just add <!-- #include file="offline.a sp"--> in the include file that
is common to all pages.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #8
Thanks everyone!
"Adrienne" <ar********@sbc global.net> wrote in message
news:Xn******** *************** *****@207.115.6 3.158...
Gazing into my crystal ball I observed "dm4714" <sp**@spam.ne t> writing
in news:#9******** ******@TK2MSFTN GP12.phx.gbl:
Hello - we have an ecommerce application that needs to come down for
maintenance. The application is normally only accessed via
http://www.mydomain.com/virtualdir/aspfile.asp.

I'm using W2K Advanced Server/SP4.

I would like to create a generic HTML page that can easily be put on
the IIS server to redirect all users that access any files on this
domain to my maintenance page.

Originally, I thought I could create a directory called "maint" or
whatever from root and from the "Directory" tab within IIS Manager,
change the URL to redirect to a specific page and set the checkbox
(directory below current or whatever). This appears to work, as long
as no virtualdirector or specific ASP file is referenced at the end of
the URL.

Does anyone know the best way to handle this without making a bunch of
permanent changes? My site will be down about 6 hours and I need a
maintenance page to display during this period.

BTW, I do have other banking sites that have their own logon/password
form on their site. Their sites <FORM> action attribute points to my
server.

Any help would be appreciated.


If you have a common include file in all your documents, it's pretty
simple. Create a maintenance.htm l and offline.asp . In offline.asp just:

<% dim offline
dim redirect

offline = false
redirect = "maintenance.ht ml"

if offline = true then
response.redirc t redirect
end if
%>

Then just add <!-- #include file="offline.a sp"--> in the include file that
is common to all pages.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 22 '05 #9
Adrienne wrote on 02 mrt 2005 in
microsoft.publi c.inetserver.as p.general:
If you have a common include file in all your documents, it's pretty
simple. Create a maintenance.htm l and offline.asp . In offline.asp
just:

<% dim offline
dim redirect

offline = false
redirect = "maintenance.ht ml"

if offline = true then
response.redirc t redirect
end if
%>

Then just add <!-- #include file="offline.a sp"--> in the include file
that is common to all pages.


Why have the browser show the maintenance.asp address?
Do a transfer!

You will have to test the site online yourself during maintenance,
I suppose

Switching by setting or removing remark apostrofes is easiest

=============== ==============

<%
offline = false
'offline = true ' delete first remark sign if site offline

excludeMySelf = true
excludeMySelf = false ' remark line if exclusion not required

isMyIP = request.serverv ariables("remot e_addr")="123.4 56.3.1"

notMyIP = NOT isMyIP and NOT excludeMySelf

if offline and notMyIP then server.transfer "maintenance.as p"
%>
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3849
by: WJ | last post by:
1. I have a website called "myWeb" resides under E:\SOS\myWeb.Net" folder in an IIS-6/Windows 2003 server. Its host-header is "myWeb.Net". 2. Default page is "Index.aspx". 3. In the same folder as above, there are two additional aspx pages called: page2.aspx and page2.1.aspx. 4. The "Index.aspx" calls "Page2.aspx" with the command "Response.Redirect("http://myWeb.Net/Page2.aspx"); This always works.
8
2492
by: Stimp | last post by:
I need to take my website offline for an hour or so while I perform some maintenance... is it possible to create a 'catch-all' redirect to a temporary page (i.e. something in Web.config or global.asax.vb) ? People access my site through several different pages, so I couldn't put a redirect on the homepage, and taking my server offline is out the question. Thanks, Peter
2
2845
by: Peter McEvoy | last post by:
Folks, I've been building a Webservice API for a contract that will be exposed to the internet at large. There are two endpoints, and each endpoint contains a number of webmethods. Every webmethod returns a returncode which indicates the level of success in performing the operation (as well as the actual results of the call in an "out" parameter) They have a requirement that when they want to perform maintenance on the backend system,...
8
5144
by: howa | last post by:
a page currently in HTTPS, I force the client to redirect to another page using HTTP under the same domain (e.g. abc.com), i.e. header("Location: http://www.abc.com/index.php"); IE successfully redirect to HTTP, but FF & Opera stay on the HTTPS any suggestions?
6
2982
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, We have two sites hosted on different servers and we have many pages on domain A which has many links(asp programs) to domain B. My question is if domain B server is in trouble, what is the best way to have all domain pages redirect to domain A? Right now I just have redirect code in each program on domain B to redirect to a maintenance page on domain A. Can I just write on program to solve this issue? Thanks.
4
3366
by: Mike Gleason jr Couturier | last post by:
Hi, What's a clean way to redirect users on an information page while doing site maintenance... Can we do it with urlMappings !? (wildcard "*"?) Thanks
2
1992
by: =?Utf-8?B?UHJpeWE=?= | last post by:
Hi, I wanted to redirect all requests to my website to a maintenance page for a duration of 3 hours. It is any requests coming to www.abc.com or www.abc.com/index.aspx or www.abc.com/book/index.aspx........ or any requests for directories / subdomains / pages under www.abc.com to be redirected to outage.aspx. This outage.aspx is in teh local computer. How do i specify wildcards? How do i configure the settings in IIS6.0. Pls let me know....
8
2925
luckysanj
by: luckysanj | last post by:
Dear Sir, How can i redirect index page to wwx.site.com/me/index.php. I have not fineshed front index page work so now i want to redirect this page to my personal information which is located on wwx.site.com/me. And I inform to user that the index page is under maintenance so this page is redireting to personal information page like wwx.site.com/me. This all is my own concept so plz clear me that. Is it right method to redirecting...
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10360
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9960
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.