Thanks Paul! Please, read below... On Thu, Dec 10, 2015 at 11:49 AM Paul Libbrecht <[email protected]> wrote:
Ricardo,
are you unable to move the webapp to root?
Nope! I can move XWiki to ROOT in Tomcat by simply renaming the application folder! But I've been asked to not to do that by respecting the current application running as ROOT in the server where I'm deploying XWiki. Besides, I would like to run several XWiki instances in the same box. In fact, I'm already doing that, calling each application by using the "application part of the URL". Far simple, for example... http://isabel.idisantiago.es:8080/xwiki http://isabel.idisantiago.es:8080/atriumkm I would like to set up a vhost for each instance that avoid the "application part in the URL.
The shortURLs experience thus far has been based on that.
For your vhost, you "just" need to change:
ProxyPass /atriumkm http://localhost:8080/atriumkm to ProxyPass / http://localhost:8080/atriumkm
I think I've already tried this. As following... ***** <VirtualHost *:80> ServerAdmin [email protected] ServerName isabel.idisantiago.es # RedirectMatch permanent ^/$ http://isabel.idisantiago.es/atriumkm/ ProxyPass / http://localhost:8080/atriumkm ProxyPassReverse / http://localhost:8080/atriumkm # ProxyPass / http://localhost:8080 # ProxyPassReverse / http://localhost:8080 DocumentRoot /var/www/html # Logging ErrorLog /var/log/apache2/isabel.idisantiago.es-error_log CustomLog /var/log/apache2/isabel.idisantiago.es-access_log common </VirtualHost> ***** And I get this error... ***** Too many redirects occurred trying to open "isabel.idisantiago.es//". ***** This is the current configuration. You can see that error accessing... http://isabel.idisantiago.es It is clear that my understanding about how URLs are constructed is truly poor! Any help will be welcome! Thanks!!!
but there will be links left produced by the web-app that will contain /atriumkm, I think.
Paul
[IDIS Technical Secretariat] Ricardo Rodríguez <mailto:[email protected]> 10 décembre 2015 11:36 Hi!
I'm moving an old XWiki installation (XWiki Enterprise 2.4.30451) to a new box. It currently runs as root in a CentOS/Tomcat/MySQL box serving pages at port 80. The destination is a Ubuntu/Apache Web Server/Tomcat MySQL where an Apache virtual host will serve all controller and virtual wikis. A different application is already running as root in the destination.
I do need to remove the application part of the URL from the pages served by the new location. This is mainly due to lots of hardcoded URLs I''m not able to get rid of them now.
This simple virtual host configuration works fine, but I'm not able to understand how could I remove the "atriumkm", the application, part of the URL...
<VirtualHost *:80> ServerAdmin [email protected] ServerName isabel.idisantiago.es
RedirectMatch permanent ^/$ http://isabel.idisantiago.es/atriumkm/
ProxyPass /atriumkm http://localhost:8080/atriumkm ProxyPassReverse /atriumkm http://localhost:8080/atriumkm
DocumentRoot /var/www/html
# Logging ErrorLog /var/log/apache2/isabel.idisantiago.es-error_log CustomLog /var/log/apache2/isabel.idisantiago.es-access_log common </VirtualHost>
I've found this thread that it seems to me deals with a similar issue...
http://markmail.org/thread/u5hu7kw6rr2fcacx
... but I'm not able to understand how to get it working.
Please, must I be able to do that by modifying the VirtualHost configuration? Must I modify web.xml? Something related with xwiki.cfg parameters? There are a lot of information playing around and concepts I don't understand well.
Any help will be extremely welcome!
Cheers!
Ricardo _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users