Re: [xwiki-users] ProxyPass to xwiki / name based vhost wikis

2014-05-06 Thread Clemens Klein-Robbenhaar

I guess the issue is with the redirectHomeServlet in the web.xml which has an 
init-param  homePage=bin/Main/
(commented by default, but I guess you uncommented that)
If you do not adapt this, it handles the homePage as relative URL, and 
completes it with the default web-app path, which is /xwikiproj/ in your case.

Does it help if you retry with an absolute URL for that param , or maybe just 
an absolute path, like):
  init-param
  descriptionThe address to redirect to when the client hits the root of 
the application./description
  param-namehomePage/param-name
  param-value.bin/Main//param-value
/init-param

Clemens

 Hi,
 
 Of course, the question happen because I have several webapps already 
 installed in the *same* container, otherwise I would just have to install 
 this xwiki in the ROOT directory.
 (In other words, I already red 
 http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs)
 Cheers
 
 Le 29/04/2014 13:11, Martin Hamant a écrit :
 Hi,

 I'm trying to set up an apache virtualhost with transparent proxy to a wiki 
 of an xwiki farm (which farm resides on a local tomcat container).
 The main requirement here is I want the xwiki webapp path NEVER to appear 
 anywhere in the URL - this is the point why I am using name based 
 virtualhost.

 http://projtest.sub.domain.com should be the home page of the wiki that is 
 available within the /xwikiproj context of the container, so when requesting 
 http://projtest.sub.domain.com , I want the WebHome page displayed with the 
 URLhttp://projtest.sub.domain.com/bin/view/Main/WebHome in the browser.

 With the configuration below, I get redirected to 
 http://projtest.sub.domain.com/xwikiproj/bin/view/Main/WebHome. However I 
 see that xwiki homepage logo link (upper left corner) is formed correctly to 
 http://projtest.sub.domain.com/bin/view/Main/WebHome and I can get back to 
 Home by clicking that link.


 I've set xwiki.cfg like follow:
 xwiki.virtual.usepath=0
 xwiki.webapppath=/


 VirtualHost *
   ServerName projtest.sub.domain.com

   ProxyPreserveHost on
   ProxyPassReverseCookiePath /xwikiproj /
   ProxyPass / http://localhost:8080/xwikiproj/ retry=5
   ProxyPassReverse / http://localhost:8080/xwikiproj/
 /VirtualHost

 Going a little deeper, I see that http://projtest.sub.domain.com/ returns a 
 302 with location header set to 
 'h|ttp://projtest.projects.ow2.org/xwikiproj/bin/view/Main/'| so I guess 
 xwiki somehow adding xwikiproj to the 'Location' header but I don't 
 understand why and how I can handle it !

 Any idea ? Thanks !

 Martin
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users



mit freundlichen Grüßen
Clemens Klein-Robbenhaar

-- 
Clemens Klein-Robbenhaar
Software Development
EsPresto AG
Breite Str. 30-31
10178 Berlin/Germany
Tel: +49.(0)30.90 226.763
Fax: +49.(0)30.90 226.760
robbenh...@espresto.com

HRB 77554 B - Berlin-Charlottenburg
Vorstand: Maya Biersack, Peter Biersack
Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber
Zertifiziert nach ISO 9001:2008
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] ProxyPass to xwiki / name based vhost wikis

2014-05-01 Thread Martin Hamant

Hi,

Of course, the question happen because I have several webapps already 
installed in the *same* container, otherwise I would just have to 
install this xwiki in the ROOT directory.
(In other words, I already red 
http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs)

Cheers

Le 29/04/2014 13:11, Martin Hamant a écrit :

Hi,

I'm trying to set up an apache virtualhost with transparent proxy to a 
wiki of an xwiki farm (which farm resides on a local tomcat container).
The main requirement here is I want the xwiki webapp path NEVER to 
appear anywhere in the URL - this is the point why I am using name 
based virtualhost.


http://projtest.sub.domain.com should be the home page of the wiki 
that is available within the /xwikiproj context of the container, so 
when requesting http://projtest.sub.domain.com , I want the WebHome 
page displayed with the 
URLhttp://projtest.sub.domain.com/bin/view/Main/WebHome in the browser.


With the configuration below, I get redirected to 
http://projtest.sub.domain.com/xwikiproj/bin/view/Main/WebHome. 
However I see that xwiki homepage logo link (upper left corner) is 
formed correctly to 
http://projtest.sub.domain.com/bin/view/Main/WebHome and I can get 
back to Home by clicking that link.



I've set xwiki.cfg like follow:
xwiki.virtual.usepath=0
xwiki.webapppath=/


VirtualHost *
  ServerName projtest.sub.domain.com

  ProxyPreserveHost on
  ProxyPassReverseCookiePath /xwikiproj /
  ProxyPass / http://localhost:8080/xwikiproj/ retry=5
  ProxyPassReverse / http://localhost:8080/xwikiproj/
/VirtualHost

Going a little deeper, I see that http://projtest.sub.domain.com/ 
returns a 302 with location header set to 
'h|ttp://projtest.projects.ow2.org/xwikiproj/bin/view/Main/'| so I 
guess xwiki somehow adding xwikiproj to the 'Location' header but I 
don't understand why and how I can handle it !


Any idea ? Thanks !

Martin
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] ProxyPass to xwiki / name based vhost wikis

2014-04-29 Thread Martin Hamant

Hi,

I'm trying to set up an apache virtualhost with transparent proxy to a 
wiki of an xwiki farm (which farm resides on a local tomcat container).
The main requirement here is I want the xwiki webapp path NEVER to 
appear anywhere in the URL - this is the point why I am using name based 
virtualhost.


http://projtest.sub.domain.com should be the home page of the wiki that 
is available within the /xwikiproj context of the container, so when 
requesting http://projtest.sub.domain.com , I want the WebHome page 
displayed with the 
URLhttp://projtest.sub.domain.com/bin/view/Main/WebHome in the browser.


With the configuration below, I get redirected to 
http://projtest.sub.domain.com/xwikiproj/bin/view/Main/WebHome. However 
I see that xwiki homepage logo link (upper left corner) is formed 
correctly to http://projtest.sub.domain.com/bin/view/Main/WebHome and I 
can get back to Home by clicking that link.



I've set xwiki.cfg like follow:
xwiki.virtual.usepath=0
xwiki.webapppath=/


VirtualHost *
  ServerName projtest.sub.domain.com

  ProxyPreserveHost on
  ProxyPassReverseCookiePath /xwikiproj /
  ProxyPass / http://localhost:8080/xwikiproj/ retry=5
  ProxyPassReverse / http://localhost:8080/xwikiproj/
/VirtualHost

Going a little deeper, I see that http://projtest.sub.domain.com/ 
returns a 302 with location header set to 
'h|ttp://projtest.projects.ow2.org/xwikiproj/bin/view/Main/'| so I guess 
xwiki somehow adding xwikiproj to the 'Location' header but I don't 
understand why and how I can handle it !


Any idea ? Thanks !

Martin
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users