Home
TeamSite
Force login to use fully qualified hostname
System
I want to force users to log in to TeamSite using hostname.domain.com/iw instead of just hostname/iw. Hopefully this would be transparent to the user - if they went to any url at hostname it should redirect them to hostname.domain.com. Does anyone have a quick solution for this?
The issue is that CCI links such as in email messages and the portal always have the fully qualified hostname. When they use these links, if they have only logged into TeamSite using the unqualified hostname, the cookies are not sent to the server when the CCI links are used, so the user is given some error message or told to log in again.
Thanks in advance,
-John
Find more posts tagged with
Comments
Gregg Faus
This could be accomplished through a rewrite condition in your apache config (\iw-home\iw-webd\conf\http.conf.template).
An example provided
here
is similar to what you need:
RewriteCond %{HTTP_HOST} !^hostname [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*)
http://fully.qualified.domain.name/$1
[L,R]
Consult the mod_rewrite docs for exact syntax. The condition would have to match the URL of the login page with your hostname. e.g.
http://teamsite/iw/webdesk/login
Gregg Faus
Goofed on the file name. It is actually rewrite.conf.template.
Migrateduser
We added the following to IWHOME/iw-webd/conf/rewrite.conf.template on Dev and QA after the line RewriteLogLevel 0
RewriteCond %{HTTP_HOST} !^hostname\.domain\.com [NC]
RewriteRule ^/(.*)$
http://hostname.domain.com/$1
[L,R]
Of course hostname is the machine name and domain is the domain name. I think this says "if the URL does not start hostname.domain.com change it to start hostname.domain.com".
Then iwreset -ui. It seems to be working. There was a comment in this file:
# Everything else must be part of the customer's website
But it didn't seem to be working when we put the configuration at the end of the file. Hopefully putting it before the Interwoven configuration will not break anything.
More pontial default/configurable/supported behaviour Interwoven?