Multiple domainnames on a single website

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Multiple domainnames on a single website

njansen
Hello,

I need some help in configuring Shibboleth.

Situation:
I've set up a single website in IIS (version 7.5). Each folder on root level (wwwroot/folder1/, wwwroot/folder2 etc.) represents a customer website.
Some of these folders need to be secured.
Each customer has it's own dns name, so customer1 goes to https://site1.domain/folder1/ and customer2 goes to https://site2.domain.nl/folder2/. In IIS I'm using a wild card certificate, all subdomains in *.domain.nl wil work.

I've created the following configuration in Shibboleth2.xml:

    <InProcess logger="native.logger">
        <ISAPI normalizeRequest="true" safeHeaderNames="true">
            <Site id="1" name="site1.domain.nl" scheme="https" port="443">
                <Alias>site2.domain.nl</Alias>
            </Site>
        </ISAPI>
    </InProcess>

    <RequestMapper type="Native">
        <RequestMap>
            <Host name="site1.domain.nl">
                <Path name="folder1" authType="shibboleth" requireSession="true">
                        <Path name="net/services/public" authType="shibboleth" requireSession="false" />
                </Path>
            </Host>
            <Host name="site2.domain.nl">
                <Path name="folder2" authType="shibboleth" requireSession="true">
                        <Path name="net/services/public" authType="shibboleth" requireSession="false" />
                </Path>
            </Host>
        </RequestMap>
    </RequestMapper>


When the customer goes to https://site1.domain.nl/folder1/ everthing works as intended, the customer is redirected to the idp.

When the customer goes to https://site2.domain.nl/folder2/ the customer is not redirected to the idp, but the default page on folder2 is opened.

I hope what I have requested is possible.