Hi erockx,
Thank you for your suggestion.
I do what you said. And it works. Furthermore, I found something.
If you have a file named like "index.html" in the root of XWiki, it will go
to this page when you visit the
http://localhost/
If you remove the "index.html" like file, and do what you said, everything
works well as we want.
Before this modify, I have to type
http://localhost/xwiki/ to visit my wiki.
But now I can just type localhost to visit it.I use Tomcat 5.5. Here are my
steps to deploy the XWiki as ROOT.
1. modify $TOMCAT/conf/server.xml, add:
<Context path="/"
docBase="D:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\xwiki"
debug="0"
reloadable="true"/>
after
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
2. modify $Webapps/xwiki/WEB-INF/web.xml, find the display-name property in
WEB-INF/web.xml to an empty value, like:
<display-name></display-name>
3. Delete the context.xml file in /META-INF
4. Delete the file like "index.html" in the xwiki root if they are there.
5. restart Tomcat.
As these have been done, the url of XWiki in my laptop is like "
http://localhost/bin/view/Main/"quot;.
But we can see that
www.xwiki.org has the apps url as
http://www.xwiki.org/xwiki/bin/view/Main/.
Sincerely, Wang Ning
2007/3/19, erockx <ebessette(a)gmail.com>om>:
Sergiu,
Thanks for you reply, that was a big help.
All,
Here are the explicit steps that worked for me with Tomcat 5.5+:
1. Put the name of your webapp, blank for ROOT, in the <display-name> tag
in
/WEB-INF/web.xml
2. Delete the context.xml file in /META-INF
3. Reload the webapp or restart Tomcat
I'll report any problems with changing the webapp name to
http://jira.xwiki.org. I suggest others do as well.
Thanks,
Eric
--
View this message in context:
http://www.nabble.com/URLs-tf744173.html#a9544220
Sent from the XWiki- Dev mailing list archive at
Nabble.com.
--
You receive this message as a subscriber of the xwiki-dev(a)objectweb.orgmailing list.
To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws