Re: [xwiki-users] XWiki as ROOT webapp
Hi Alex, On 24 Jul 2015 at 22:42:56, Alex Martin (alexmartin...@gmail.com(mailto:alexmartin...@gmail.com)) wrote: Hello All, I'm struggling trying to get various resources to render or load correctly when moving xwiki from: /usr/share/tomcat/webapps/xwiki to /usr/share/tomcat/webapps/ROOT I've followed the 'Deploying as ROOT' step on the XWiki page below: http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs#HDeployingasROOT Including setting the xwiki.cfg value: xwiki.webapppath= However, when restarting tomcat and testing these changes, the logo, glyphicons fail to load as per the screenshot: http://i.imgur.com/SUfMtjs.png I am at wits' end trying to work this one out! Can anyone help or give me some clue what I can check? This is with Fedora 22 server, Java 1.8 and Tomcat 8 with XWiki 7.1.1 and XWiki 7.2M1 I’ve just fixed the bug a few minutes ago (it’s a regression). See http://jira.xwiki.org/browse/XWIKI-12342 Sorry about that! Thanks -Vincent Many thanks, Alex ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki as ROOT webapp
Hello All, I'm struggling trying to get various resources to render or load correctly when moving xwiki from: /usr/share/tomcat/webapps/xwiki to /usr/share/tomcat/webapps/ROOT I've followed the 'Deploying as ROOT' step on the XWiki page below: http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs#HDeployingasROOT Including setting the xwiki.cfg value: xwiki.webapppath= However, when restarting tomcat and testing these changes, the logo, glyphicons fail to load as per the screenshot: http://i.imgur.com/SUfMtjs.png I am at wits' end trying to work this one out! Can anyone help or give me some clue what I can check? This is with Fedora 22 server, Java 1.8 and Tomcat 8 with XWiki 7.1.1 and XWiki 7.2M1 Many thanks, Alex ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki as root webapp
I found solution for me. Sorry for stupid questions, but it is new expirience for me. Answer: - open folder /etc/tomcat6/Catalina/localhost. In this folder exists 2 files: ROOT.xml xwiki.xml. - delete ROOT.xml - rename xwiki.xml to ROOT.xml - edit ROOT.xml after renaming, change ..path=/xwiki.. to ..path=/.. - save ROOT.xml - restart tomcat Maybe it will helpful for somebody else. -- Best regards Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-as-root-webapp-tp7581242p7581253.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki as root webapp for an xwiki debian package
Eugen, I am only responding to you so that the subject is changed to include debian package. I think this is highly specific to the Debian package distribution (as you hinted in your first post, I interpreted devian as debian and hope it is ok). The other strategy you considered, modifying server.xml, is also what I would have done first... paul Le 11 sept. 2012 à 08:49, Eugen Colesnicov a écrit : I found solution for me. Sorry for stupid questions, but it is new expirience for me. Answer: - open folder /etc/tomcat6/Catalina/localhost. In this folder exists 2 files: ROOT.xml xwiki.xml. - delete ROOT.xml - rename xwiki.xml to ROOT.xml - edit ROOT.xml after renaming, change ..path=/xwiki.. to ..path=/.. - save ROOT.xml - restart tomcat Maybe it will helpful for somebody else. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki as root webapp
On Tue, Sep 11, 2012 at 8:49 AM, Eugen Colesnicov ecolesni...@gmail.com wrote: I found solution for me. Sorry for stupid questions, but it is new expirience for me. Answer: - open folder /etc/tomcat6/Catalina/localhost. In this folder exists 2 files: ROOT.xml xwiki.xml. - delete ROOT.xml - rename xwiki.xml to ROOT.xml - edit ROOT.xml after renaming, change ..path=/xwiki.. to ..path=/.. - save ROOT.xml - restart tomcat Maybe it will helpful for somebody else. It would be a nice addition to http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT ;) -- Best regards Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-as-root-webapp-tp7581242p7581253.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki as root webapp
Hi! I had the same problem with non-debian configuration. I wanted also to set up XWiki as root. As Tomcat is not exactly web server, there are some solutions: 1. The way you described. As far as I understood you have now wikiless path - without /xwiki part. I raised this problem some time ago and Sergiu Dumitriu answered me following: 1. Is it crucial for XWiki and/or some XWiki applications to eat shorten URL on Tomcat's level? Will it affect, for example, on virtual wiki mapping for URLs based addresses like http://myfarm.net/xwiki/wiki/wikiname/? XWiki should work just fine with the shorter URLs. The xwikiless information might be very outdated, when it used to be true that some parts of XWiki would fail. I didn't get exact consequences of very outdated , thus solved it other way. 2. Set up Glassfish (or any other) - it can manage ROOT fine itself. 3. Cover Tomcat with an web server. I found nginx as best solution for me. Finally I set up Tocat + nginx, that makes it very flexible and fast. If you need - write me in private, I'd share a nginx configuration to solve a problem: mydomain.com - nginx - localhost:8080/xwiki. So, endusers use only mydomain.com paths. The same is possible with any web-server actually. Kind regards, Dmitry Tue, 11 Sep 2012 10:30:03 +0200 от Thomas Mortagne thomas.morta...@xwiki.com: On Tue, Sep 11, 2012 at 8:49 AM, Eugen Colesnicov ecolesni...@gmail.com wrote: I found solution for me. Sorry for stupid questions, but it is new expirience for me. Answer: - open folder /etc/tomcat6/Catalina/localhost. In this folder exists 2 files: ROOT.xml xwiki.xml. - delete ROOT.xml - rename xwiki.xml to ROOT.xml - edit ROOT.xml after renaming, change ..path=/xwiki.. to ..path=/.. - save ROOT.xml - restart tomcat Maybe it will helpful for somebody else. It would be a nice addition to http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT ;) -- Best regards Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-as-root-webapp-tp7581242p7581253.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Kind regards, Dmitry ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] xwiki as root webapp
For i2geo, I solve this using Apache mod_rewrite: only some paths, those candidate to be often exchanged, are rewritten and proxied accordingly, all others remain to /xwiki. -- given a path that should be shortened, make a rewrite rule that redirects to the shorter variant -- given a path that is shortened, proxy the right variant -- per default proxy everything /xwiki The bigger problem with this intent is that you have the URLs output to /xwiki. Maybe a stock xwiki can correct all of them, but I've seen a lot of hard coding there (and I practice it every day, e.g. for css or javascript). paul Le 11 sept. 2012 à 10:58, Dmitry Bakbardin a écrit : Hi! I had the same problem with non-debian configuration. I wanted also to set up XWiki as root. As Tomcat is not exactly web server, there are some solutions: 1. The way you described. As far as I understood you have now wikiless path - without /xwiki part. I raised this problem some time ago and Sergiu Dumitriu answered me following: 1. Is it crucial for XWiki and/or some XWiki applications to eat shorten URL on Tomcat's level? Will it affect, for example, on virtual wiki mapping for URLs based addresses like http://myfarm.net/xwiki/wiki/wikiname/? XWiki should work just fine with the shorter URLs. The xwikiless information might be very outdated, when it used to be true that some parts of XWiki would fail. I didn't get exact consequences of very outdated , thus solved it other way. 2. Set up Glassfish (or any other) - it can manage ROOT fine itself. 3. Cover Tomcat with an web server. I found nginx as best solution for me. Finally I set up Tocat + nginx, that makes it very flexible and fast. If you need - write me in private, I'd share a nginx configuration to solve a problem: mydomain.com - nginx - localhost:8080/xwiki. So, endusers use only mydomain.com paths. The same is possible with any web-server actually. Kind regards, Dmitry Tue, 11 Sep 2012 10:30:03 +0200 от Thomas Mortagne thomas.morta...@xwiki.com: On Tue, Sep 11, 2012 at 8:49 AM, Eugen Colesnicov ecolesni...@gmail.com wrote: I found solution for me. Sorry for stupid questions, but it is new expirience for me. Answer: - open folder /etc/tomcat6/Catalina/localhost. In this folder exists 2 files: ROOT.xml xwiki.xml. - delete ROOT.xml - rename xwiki.xml to ROOT.xml - edit ROOT.xml after renaming, change ..path=/xwiki.. to ..path=/.. - save ROOT.xml - restart tomcat Maybe it will helpful for somebody else. It would be a nice addition to http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT ;) -- Best regards Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-as-root-webapp-tp7581242p7581253.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Kind regards, Dmitry ___ 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] xwiki as root webapp
I installed xwiki via devian-package. All is working, but I want to configure xwiki as root webapp. I am not a specialist in this (configuring tomcat) ... How I can do this especially in situation, when was used debian package (with not standart path-s). For example, xwiki app didn't placed in tomcat/webapps ... I founded file \etc\xwiki\xwiki-tomcat.xml with this content: Context path=/xwiki docBase=/usr/lib/xwiki debug=0 privileged=true allowLinking=true crossContext=true Resources className=org.apache.naming.resources.FileDirContext allowLinking=true / /Context I tried to change path=/xwiki with path=/ or path=/ROOT - but no any changes in a realty (of course after restarting tomcat) - xwiki opened with path localhost://8080/xwiki ... Maybe need another modifications? -- Thanks beforehand Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/xwiki-as-root-webapp-tp7581242.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users