bflow1
bflow1

Reputation: 969

IIS7 -- web services and web app coexist under Default Web Site?

I am new to most aspects of IIS administration. My requirement is for the URL www.mysite.com to resolve to www.mysite.com/myapp when entered into a browser. However, myapp (not the real name) resides in Default Web Site (see green box) along with another directories that contain some web services (see red box in screenshot) which use port 80. Also, www.mysite.com must run under SSL.

Here's a shot of the current setup. I have obscured the true names a bit.

enter image description here

I need to have www.mysite.com resolve to the app in the green box (call it mysite.com/myapp), but I don't know how to:

1) Set that up, in general.

2) Set that up without impacting the services in the red box.

I've done some reading on host headers and ARR, but it's still not clear to me how to solve the problem.

Thanks.

EDIT: added screenshot and details.

Upvotes: 1

Views: 257

Answers (2)

bflow1
bflow1

Reputation: 969

I tried using IIS URL Rewrite module to look for requests that are only for www.mysite.com, and then redirect them to www.mysite.com/myapp and that seems to have worked.

I see that the cert error that I get with my self-signed cert is standard, until I add it to my browser's Trusted Root Cert Authority.

I'll upvote the first response to (and first comment on) my question. Thanks for pitching in.

Upvotes: 1

Phil
Phil

Reputation: 1973

honestly, the quickest/easiest way i found to do this was to make default.htm file, put it in the wwwroot folder, and make the html file just do a redirect to the URL you want.

Upvotes: 1

Related Questions