« Previous Next »

Thread: Running multiple services on IIS 7

Last post 06-27-2009 10:31 PM by steve schofield. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 06-25-2009, 7:13 AM

    Running multiple services on IIS 7

    Hi

    I'm a newbie so bear with me. I wonder if it is possible to have an IIS 7 setup that gives me URLs to services like this:

    https://services.mycompany.com/Internal/InternalServiceA/

    https://services.mycompany.com/Internal/InternalServiceB/

    https://services.mycompany.com/External/ExternalServiceA/

    http://services.mycompany.com/External/ExternalServiceB/

    Is this possible on a single server running IIS 7?  I'm going to install WCF services in our system and I'm not sure how to set this up. The idea is to have all services under the same domain (services.mycompany.com) and separate services that is accessible internaly and externaly. Any suggestions?

  • 06-25-2009, 9:32 AM In reply to

    Re: Running multiple services on IIS 7

    Sure.  Though I wouldn't do it this way, it's quite feasible.  Easiest is to assign each a separate IP address and create four separate sites, but if you want a single site it can be done.  You can use different authentication, IP restrictions or whatever you want to keep them separated.  It's much easier to separate four individual sites, your firewall can do that.

    Not sure why you want them all under the same domain either.  I'd use four hosts in the mycompany.com domain, each host pointing to a separate site with the appropriate service.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 06-26-2009, 1:31 AM In reply to

    Re: Running multiple services on IIS 7

    Thanks Jeff.

    So if you was to decide you would go for this:

    https://externalserviceA.mycompany.com

    https://internalserviceA.mycompany.com

    Etc.

    The reason I want them under the same domain is because domain names have a cost. And I dont know today how many services we would create the comming years. What if we have 10 or twenty services?

    So it is feasible to have applications in sub-directories like this:

    c:\inetpub\wwwroot\ExternalServices\ApplicationA

    c:\inetpub\wwwroot\InternalServices\ApplicationB

    So to reach the ApplicationA you'll enter this URL: https://services.mycompany.com/ExternalServices/ApplicationA/

    I may go for your suggestions but I want to have a clear understanding of the alternatives too.

    Thanks again.

  • 06-27-2009, 10:31 PM In reply to

    Re: Running multiple services on IIS 7

    It's all a matter of administration of the domain name.  Since mycompany.com needs to be exposed externally.  Your internal domain could be someting different or the same, depending on your DNS structure.   I hope this isn't too confusing, but depending on your company size, some will have an Active Directory domain, which is internal.   If you have a external only domain, then your internal IP address is exposed externally. 

    What Jeff purposed is the most flexible and easiest to manage since it's a one to one relationship.   If you have 1 domain externally and 1 internally, that would be also pretty easy to implement.  One ip address could be internal and one for external applications.   I've done solutions and there isn't a huge difference.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield


    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
Page 1 of 1 (4 items)
Microsoft Communities