Home
TeamSite
IIS, Livesite, Multiple Domains - ?
k1DBLITZ
How does one host multiple domains/websites using IIS in conjunction with LiveSite?
I initially thought I would just create multiple webs in IIS like we do today then load up the ISAPI filter for each web and point it to it's root dir. However, the more I learn about this the more I think it won't work that way.
The configuration for the ISAPI filter appears to be a global entry in the registry.
Has anyone done this before or have any documentation they could point me to?
Thanks.
Find more posts tagged with
Comments
k1DBLITZ
*crickets*
So I received some valuable information from professional services and thought I'd share to help the next guy out.
Use the method below instead the ISAPI filter if you're running IIS7. You will find that performance is much improved.
1) Follow the instructions on this page to download and install the application and then perform the configuration steps as indicated, including optional steps 3 & 4:
http://learn.iis.net/page.aspx/574/install-application-request-routing-version-2/
2) Open IIS7 Manager.
3) Click on the server name in the left column. Double-click on the “Application Request Routing Cache” icon in the IIS section of the “Features” view.
4) In the “Application Request Routing Cache” screen, click on “Server Proxy Settings…” in the “Actions” column on the right.
5) In the “Application Request Routing” screen, check the “Enable Proxy” checkbox. Click on “Apply” and then “Back to ARR Cache” in the “Actions” column on the right.
6) Close II7 Manager.
7) Open Windows Explorer and navigate to “C:\Inetpub\wwwroot”.
8) Create a new text file called “web.config” containing the following information:
[PHP]
[/PHP]
9) Navigate to “C:\Windows\System32\drivers\etc”.
10) Edit the “hosts” file and add the following entry:
127.0.0.1
www.localhost.local
11) Navigate to “C:\Interwoven\LiveSiteDisplayServices\runtime\web\sites\MySite”.
12) Edit the “default.site” file and add the following entry immediately after the line with “[PHP][/PHP]”:
[PHP]
www
localhost.local
[/PHP]
13) Test the site locally by opening a web browser on the server and navigating to “
http://localhost”
. The LiveSite web page should appear.
14) Test the site remotely by opening a web browser on a workstation and navigating to “
http://SERVERFQDN”
, where SERVERFQDN is the fully qualified domain name of the web server. The LiveSite web page should appear.
k1DBLITZ
Ok, so turns out once you have implemented the above, you are still faced with a
major
problem in that the site descriptor (or Tomcat app) is part of the path.
Please see
jamessteel's post
for more detail.
In his case users were connecting directly to Tomcat.
In my case there are multiple webs configured in IIS for each brand, which is fine and dandy. The major problem with the way Livesite works is that everything is configured as
one
webapp in Tomcat.
So the URL becomes:
http://www.brand1.com/brand-1/index.page
http://www.brand2.com/brand-2/index.page
http://www.brand3.com/brand-3/index.page
etc, etc.
The URL's
should
be:
http://www.brand1.com/index.page
http://www.brand2.com/index.page
http://www.brand3.com/index.page
I created some tricky redirect/rewrite rules in the IIS URL rewrite filter and was able to pull it off.
Here's how:
[PHP]
[/PHP]
Rick Poulin
Well that seems awfully convoluted for such a logical requirement. Thanks for posting the solution. I'm sure that's not an uncommon request.