Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a folder that is hosting a web application. Our clients are wanting to direct their website our 'web portal' so their customers can view their account information.

In my first attempts I have the following:

domain: test.domain1.com --> c:\websites\testsite

I added a second and tried to point to the same folder:

domain: test.anotherdomain.com --> c:\websites\testsite

Each sub domain has it's own ssl certificated.

This didn't work. I kept getting a 404 error on the test.anotherdomain.com. I researched it a little and found this post:

IIS 7 - Multiple IIS Sites pointed at same directory. How is this accomplished?

So, I looked up url rewrites and found this post:

Using IIS 7.5 URL Rewrite, how can I redirect all requests not from a particular subdomain to a specific page?

I have three questions:

  1. How do I redirect the test.anotherdomain.com to the first domain's folder and still retain the url so it looks like the test.anotherdomain.com? This is important so they customers think it is still within our client's website.

  2. How will this affect the certificates if at all?

  3. How will this affect the cookies if at all?

I'm at a loss since this isn't my area of expertise.

Thank you very much for your help.

share|improve this question
    
I removed '+100 rep' from the title as there's no bounty on this question. –  ceejayoz Aug 30 '13 at 18:26
add comment

1 Answer 1

up vote 0 down vote accepted

I didn't need to redirect. I was overthinking it. I was just able to add the new domain to the bindings and it worked just the same. The new url worked fine from the same directory...

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.