Hi Mark,
because the f arming issue with postgresql I have to run also 2 xwiki
instances.
Both are associated with completely different urls - and it run fine.
But first I run in a bug, if the context contains a hyphen (XE-738).
So I changed the context names to /xwiki/ and /xwiki2/.
Best Regards,
H.-Dirk Schmitt
Am 01.12.2010 08:16, schrieb Mark Blokpoel:
Dear all,
I have recently installed Xwiki Enterprise 2.6 on our server (Ubuntu 10), deployed in
Tomcat6. For this server we use two domains:
domain1.example.com and
domain2.example.com.
By default Tomcat (and the XWiki) can be accessed via
http://domain1.example.com:8080/xwiki/, but for security and easy-access we need the xwiki
to be accessed from
http://domain2.example.com/xwiki.
This is why Tomcat is fronted by Apache2 using the AJP connector via a proxy pass which
is configured in Apache sites-enabled:
<VirtualHost *:80>
ServerAdmin root(a)example.com
DocumentRoot /var/www
ServerName
domain2.example.com
<Proxy *>
AddDefaultCharset Off
Order deny,allow
Allow from all
</Proxy>
ProxyPass /xwiki ajp://localhost:8009/xwiki/
ProxyPassReverse /xwiki ajp://localhost:8009/xwiki/
</VirtualHost>
This configuration works, the xwiki can be accessed from domain1 and domain2 however
there are some problems. The first thing I noticed is that the same wiki has has a
different skin on each domain (no xar loaded, no user logged in). Second whereas I can
access the login page athttp://domain1.example.com:8080/xwiki/bin/login/XWiki/XWikiLogin,
trying to access the login page
athttp://domain2.example.com/xwiki/bin/login/XWiki/XWikiLogin fails with an infinite http
redirect (redirecting to the same login page, HTTP/1.1 302 Moved Temporarily).
My questions are: is this type of configuration supported? If so, why is xwiki generating
a redirect on the login page to the login page on domain2 and not on domain1? Thank you
for the help.
Best,
Mark
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
------------------------------------------------------------------------
*
H.-Dirk Schmitt <http://www.computer42.org> *
Dipl. Math.
eMail:/dirk.schmitt@computer42.org/
mobile:/+49 177 616 8564/
phone: /+49 2642 99 41 10/
fax: /+49 2642 99 41 15/
Kripper Str. 35, D-53489 Sinzig