473,408 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

problem removing HttpRedirect in a script

Hi,
I'm running IIS on Win2K Advanced Server. My backend database on unix
gets suspended each night for backup purposes. This causes problems
for the middleware if users try to access the database during this
time.
So I thought I'd redirect all requests for pages in my app to a page
saying the site is offline temporarily (ten minutes)
I'm trying to do this using VBScript, exposing the IIS architecture
using

set iisobj = GetObject("IIS://localhost/W3svc/1/ROOT/apps")

where "apps" is the name of the virtual directory where my app
resides. I redirect using

iisobj.Put "HttpRedirect", "http://mymachine/offline.asp,
EXACT_DESTINATION"

and all this works fine.

My problem arises when I try to revert the redirect, ie, get rid of
it. I've tried setting the HttpRedirect property to an empty string
but requests for eg, http://mymachine/apps/login.asp are redirected to
http://mymachine/login.asp, which doesn't exist. I also tried setting
HttpRedirect to "http://" but I get Cannot Find Server Page Cannot Be
Displayed when I try to browse to http://mymachine/apps/login.asp. I
tried stopping and starting the server but no joy. The only way I can
get it back is by setting the HttpRedirect as above and then opening
the IIS mmc snap-in and clicking the radio button for "A directory
located on this computer" in the property pages for my virtual
directory.

does anybody know how I can do this using a script?

Thanks
Scott
Jul 19 '05 #1
0 992

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

Similar topics

2
by: Asad Khan | last post by:
I have an HTML file that has a call to a Javascript function in it as follows: <!-- bunch of stuff --> <script type="text/javascript">doXMLFromString()</script> <!-- bunch of stuff --> Now I...
6
by: NoCopy na | last post by:
Using the following example: domiframetest.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
2
by: AsciiSmoke | last post by:
http://insideout.fcsjobshop.co.uk/cart/search.asp If you follow this link, click 'Search jobs...', you'll see there are 'more info...' buttons against each job, this changes the 'InnerHTML' of...
1
by: Mike the Canadian | last post by:
I am having a strange problem with field verification in a form. The JavaScript below works just fine in Firefox but in IE. "license" is a pull-down list and "requiredDiscount" is a text field....
5
by: bspittles | last post by:
Can anyone tell me why the following script doesn't work in Firefox 1.5 (not sure about other versions) when it works fine in IE6 and Netscapes 7.1? Almost as importantly ;) can ayone tell me how...
3
by: Mr. Roper | last post by:
I'm pretty weak when it comes to Java script, hopefully someone will take mercy on my sole and explain this to me. How come on the following HTML page, when I have my first script tag commented...
2
by: Daz | last post by:
Hi everyone. I would like to know if it's possible to clean up my scripts, or if you will, 'make them biodegradable'. Some of my smaller script will be download to the users browser, but I would...
2
by: Daz | last post by:
Hi everyone. Is it possible to remove a script that has been added to a page? I have asked this question before, and was told that it was pretty much impossible to do, unless of course, I...
10
by: Robert Huff | last post by:
Can someone offer suggestions why, on the same server (Apache 2.2.8), this works <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html lang="en-US"> <head> <link rel=stylesheet...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...

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.