multiple portals on same IIS server

Last post 12-12-2005 11:44 AM by djbaldwin. 19 replies.

Sort Posts:

  • Re: multiple portals on same IIS server

    12-11-2005, 10:11 PM
    • Participant
      800 point Participant
    • dlykins
    • Member since 08-24-2005, 2:00 AM
    • Posts 160

    i still dont' have it working the way it should.....but www.nitnoid.com does come up if I change the properties in the Default Web Site settings.

    Home Directory has to be set to c:\websites\nitnoid and my DNN for nitnoid will come up.....

    however this means I can't get any other DNN site to come up as well....another site I have loaded on this same IIS is www.freeyardsale.com which has its own virtual diretory and its own folder under c:\websites

    Does IIS on winXP support more than  a single domain name?? -- its appears not!!????

     

  • Re: multiple portals on same IIS server

    12-11-2005, 10:24 PM
    • Participant
      1,025 point Participant
    • djbaldwin
    • Member since 09-11-2003, 9:34 AM
    • Ontario, Canada
    • Posts 205

    DotNetNuke supports unlimited domain names using the portal alias.

    You do not install DotNetNuke for every domain, all the domains should point to the same installation of DotNetNuke. It really sounds like your IIS configuration is messed up and needs some TLC.

    Dwayne J. Baldwin
  • Re: multiple portals on same IIS server

    12-12-2005, 7:16 AM
    • Participant
      792 point Participant
    • EmperorWal
    • Member since 06-06-2005, 6:23 PM
    • New York
    • Posts 166

    There are a few thing that it helps to be clear on to get this all to work. There are different mechanisms available to have a user's request routed to a specific web site on  your DNN and IIS system. Both IIS and DNN have their own mechansims, both work quite well, and they work well together. However, if you are hosting multiple sites and multiple virtual directories it can get confusing.

    When a reqest comes to IIS it can be distinguished by the combination of three factors:

    1. IP address
    2. Port number
    3. Host name

    The server versions of IIS let you create distinct Web Sites as long as each site is unambiguosly identified by these factors. For example, on Windows Server I can have four distinct web sites:

    1. IP:10.1.2.3
    2. IP: all unassigned. Port 80. Host name: MyWebA.com, MyWebB.com
    3. IP: 10.1.2.4. Port 8080. Hostname: any
    4. IP all unassigned. Port 80. Hostname: any

    Site 1 will respond to all HTTP requests on its IP address (10.1.2.3)

    Site 3 will respond to all site requests on its IP address and port number

    Site 2 will accept any other requests. However, it will only respond to requests for the site names MyWebA.com and MyWebB.com

    Site 4 will be the default bucket and catch any requests the others did not get.

     IIS on Windows XP only allows one web site. However, it can have multiple virtual directories. This means that on XP you can't have the combination of IP/Port/Hostname route requests to a specific directory. Any valid combination of IP/Port/Hostname will always get routed to the single Site. On XP you can only route requests to distinct Virtual directories by specifying an Alias or directory name. So, on XP you cannot have www.MySiteA.com go to one virtual directory and www.MyStieB.com go to a different virtual directory (that requires a server version of IIS or some extra software). On XP you can have wwwMySiteA.com go to one Virtual directory and www.MySiteB.com/SiteB go to a different virtual directory because it has a distinct virtual directory alias on the second example.

    So, on XP you have to distinguish your virtual directories by directory name. You get one default Root web directory, and then other requests are routed by the first driectory name. When setting up DNN you first need to make sure tht at least one IIS web site will accpet its requests. On XP that means your default web site should probably be like #4 and accept all requests.

    Now DNN has its own mechanism for routing requests. Typically, DNN is installed in a single virtual directory (and normally in the default root virtual directory). You set up the DNN virtual directory to accept all requests that match the IP/Port/Hostname combinations you want to support. Typically you want DNN in a web site that is set up for something like IP all unassigned. Port 80. Hostname: any. This will catch any requests.

    DNN then looks at the Hostname and port number in the requests to determine which of its Portals gets the request. It looks for an exact match. So, www.MyWebA.com is different from MyWebA.com which is different from MyWebA.com:8080.  For every Hostname (and port number) that you want DNN to handle, you must have a properly defined Alias set of for a Portal (under site settings).  Also, remember that if you want your Portal to respond by IP Address (http://10.1.2.3/) then you must register the IP address as an alias for the portal. DNN sees the IP address as another hostname.

    If a request gets routed by IIS to your DNN install and DNN cannot find a matching Portal alias, DNN uses the default portal for your install which by default is the first portal that you installed. If your requests are being handled by the default portal that means that

    1.      IIS is routing the requests to your DNN install

    2.      You probably don't have a Portal with the proper Hostname and Port number set up in DNN so DNN is passing the request to its default portal.

    You can set up distinct DNN installs in separate virtual directories or web sites, but you don’t normally do this just to have two portals. If all you want is multiple portals, use a single install and use the DNN portal alias mechanism. Sepearate DNN install and its extra complexity is mostly used for development, testing, or if you just want to keep two sites completely isolated, or if two sites could not share the same web.config (let’s say because one site required a different membership provider than the another, or a user…).

    Michael Levy
    Are you ready to be heard? WildVoice Network

    Equicast Media

    Accidental Architect
  • Re: multiple portals on same IIS server

    12-12-2005, 11:12 AM
    • Member
      255 point Member
    • ludis
    • Member since 10-25-2002, 12:49 PM
    • Posts 51
    djbaldwin wrote:

    You can setup virtual directories in IIS and make as many DDNs as you want, by installing the files as you did in c:\dotnentnuke. Then in each installation, just adjust the database settings in web.config. You can use separate SQL Server databases, or using your exisiting database or by changing the objectQualifier in web.config. The objectQualifier prefixes your database and stored procedures with whatever value you use. Just don't modify it after installing DotNetNuke.

    objectQualifier=”dnnsite2”
    objectQualifier=”dnnsite3”




    Be careful with object qualifiers...some modules will break under object qualifiers.

    Luis
  • Re: multiple portals on same IIS server

    12-12-2005, 11:44 AM
    • Participant
      1,025 point Participant
    • djbaldwin
    • Member since 09-11-2003, 9:34 AM
    • Ontario, Canada
    • Posts 205

    FYI, objectQualifiers are part of the DotNetNuke core.  The real purpose of an objectQualifier is to separate the data in a shared SQL server environment where the user is given a single database, and does not have permissions to create additional databases.  The objectQualifier prefixes the tables to allow multiple DotNetNuke installations along with other SQL applications which is very common with many hosting providers.

    If a module does not support objectQualifiers, it should not be called a DotNetNuke module, period.

    Dwayne J. Baldwin
Page 2 of 2 (20 items) < Previous 1 2