With Windows 2000 server (IIS 5.0) we are trying to use the URL redirect
feature of IIS. The settings in IIS will take any request for â??c2sâ?? and
redirect it to the â??8097â?? port, please find the exact settings below. If I
manually set up a virtual directory in IIS with a URL redirect everything
seems to work, but with my automated install that sets up the IIS settings we
run into some problems. After I run my automated install everything in IIS
looks exactly the same as when I manually add the settings with the exception
that IIS will not work correctly after the automated install.
After a automated install I have tried restarting, and stopping and starting
just about everything in IIS which does not seem to help. I have also tried
rebooting the system after an automated install which does not seem to help
either.
If I manually set up IIS through the admin GUI and get everything working
and then run the automated install that only contains the two lines that are
specified below, then IIS does not seem to work correctly any more. After an
automated install via adsutil.vbs it can also be fixed by using the admin GUI
to modify the â??c2sâ?? virtual directory settings and then modify it back to the
original settings (basically a way to enable the â??applyâ?? button) then
selecting the â??applyâ?? button. Then IIS will work correctly.
Basically it feels like the adsutil.vbs install settings do not seem to take
affect until they are manually applied via the admin GUI. Any assistance in
resolving this issue would greatly be appreciated.
Settings in IIS that I add:
To IIS we add a virtual directory named â??c2sâ?? in the â??Default Web Siteâ??
Properties for the c2s virtual directory:
Select the â??A redirection to a URLâ?? radial button
Redirect to â?? â??http://localhost:8097/$Qâ??
NOT checked â?? â??The exact URL entered above"
Checked â?? â??A directory below this oneâ?? and â??A
permanent redirection for this resource"
Automated install commands to add IIS settings that I am using:
mkwebdir.vbs -c 127.0.0.1 -w "Default Web Site" -v c2s,C:\resin\htdocs\c2s
adsutil.vbs SET w3svc/1/root/c2s/httpredirect
"http://localhost:8097/$Q,CHILD_ONLY,PERMANENT"
--
Tom Hintz