[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.
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.htm... Sent from the XWiki- Users mailing list archive at Nabble.com.
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.
On Tue, Sep 11, 2012 at 8:49 AM, Eugen Colesnicov <[email protected]> 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.htm... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
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 <[email protected]>:
On Tue, Sep 11, 2012 at 8:49 AM, Eugen Colesnicov <[email protected]> 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.htm...
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
--
Thomas Mortagne
_______________________________________________
users mailing list
[email protected] http://lists.xwiki.org/mailman/listinfo/users
Kind regards, Dmitry
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 <[email protected]>:
On Tue, Sep 11, 2012 at 8:49 AM, Eugen Colesnicov <[email protected]> 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.htm...
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
--
Thomas Mortagne
_______________________________________________
users mailing list
[email protected] http://lists.xwiki.org/mailman/listinfo/users
Kind regards,
Dmitry _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (4)
-
Dmitry Bakbardin -
Eugen Colesnicov -
Paul Libbrecht -
Thomas Mortagne