Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WebSite and Virtual Directory

Status
Not open for further replies.

jshurst

Programmer
Oct 27, 2004
1,158
US
I have a web server with multiple IP addresses and websites. When a user goes to 192.168.1.100 I want it to go directly to one website and directly to a virtual directory (let's say WebApp1). What I do not want to have to do is to say Can someone tell me the best way to do this?

I've attempted to not have the virtual directory and just put my website's home directory to be the root folder of the application, but it is messing up my relative paths in the app.

Can someone tell me the best way to do this?

Thanks,

J
 
In IIS Manager, web-site properties, Home Directory Tab, is an option to "A redirection to a URL
 
Yes, but if you redirect to another URL then all the virtual directories under that website also redirect. I need it to redirect to a virtual directory under the Default Web Site, but still on the same computer.
 
Sorry jshurst....
Create a file called default.htm and place it in the root of the website.
The code in default.htm will be the redirector for the virtual directory.
Code:
<META HTTP-EQUIV="Refresh" Content = "0; URL=http://FQDN/WebApp1">
Keep the home directory located on this computer, in documents tab make sure default.htm is added.
On the virtual directory properties, make sure local path is set, and the webApp1.htm(.asp) is added under the Documents tab.

When a user goes to - the will be redirected to - iis will serve the client WevApp1.htm(.asp)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top