Alex Samad schrieb: > On Tue, Oct 09, 2007 at 09:33:36AM -0700, Hassan Schroeder wrote: >> Ruslan Valiyev wrote: >> >>> I was wondering how to make my wiki available in the root (eg. >>> www.foo.com) instead of www.foo.com/JSPWiki? >>> I'm running a Linux server with prebuilt Tomcat 5.5.25. > do you have apache infront of it, maybe use apache's url rewrite function to > change www.foo.com to tomcat.foo.com/JSPWiki
I'd mandate to always having an apache (or equivalent) in front if you are running tomcat on a linux box - or any other measure that prevents you from running tomcat as root (the user "root") (which it normally would need to bind port 80). Now for the topic of the ROOT context: There were some gotchas in previous mails, that I'd like to point out for the records - just in case somebody gets confused. In order to have a web application ROOT (e.g. the one that tomcat by default deploys as "/") you'd either have webapps/ROOT.war or a directory webapps/ROOT/ containing "the webapplication" - that means that a directory webapps/ROOT/WEB-INF exists. There is no such thing as webapps/ROOT/ROOT.war (well, there could be, but that would involve some configuration tweaks that would make me cry) So - in order to use the "ROOT" notation for deploying JSPWiki as / rename the war-file to ROOT.war and copy it to TOMCAT_HOME/webapps or unpack it to the directory TOMCAT_HOME/ROOT/. A third (and in my eyes preferred possibility) would be to copy the war file elsewhere and refer to it from a context definition file in TOMCAT_HOME/Catalina/localhost/, starting with an entry like <Context path="/" docBase="your/path/to/JSPWiki.war" ....... I hope this can shed some light on to this topic... Cheers, Olaf _______________________________________________ This is the Jspwiki-users mailing list, in which we discuss the stable release (even-numbered, 2.4.x, 2.6.x), and user-issues. For development discussion, please join jspwiki-dev. http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users http://www.jspwiki.org/JSPWikiMailingList
