|
Question
|
How do I setup a virtual Wiki ?
|
|
Answer
|
With you own installation of XWiki, you can run multiple separate wikis in the same Wiki engine.
This can be usefull for example to setup one public wiki for the outside world and one wiki for your intranet.
For this you need the following setup:
- A main wiki server and wiki install with a database named 'xwiki', first setup with xwiki.virtual=0 in xwiki.cfg
- Point you server name to the IP of this server (for example xwiki.mydomain.com)
Now the objective is to setup a second wiki server named 'intranet.mydomain.com' pointing to a separate wiki database named 'intranetdb' (different names are used for the wiki server and the wiki database to show that these can be different. Most often you would use the same name).
To do this you need to do the following:
- Create a document called XWiki.XWikiServerClass
- Using "edit class", add the text fields (string class) called "server" and "owner" to that class
- In the main wiki database create a document called XWiki.XWikiServerIntranetdb.
- Using "edit object", add an object of instance "XWiki.XWikiServerClass" to that document
- In the owner field setup the user that should automatically have admin rights on your new virtual wiki (example XWiki.admin)
- In the server field setup the full server name of your new virtual wiki (example: intranetdb.mydomain.com)
- Repeat the operation with a document called XWiki.XWikiServerXwiki with server field setup for your main wiki URL (example: xwiki.mydomain.com). This step is not needed if you main wiki starts with "www" as it would by default go to the main wiki database.
- Setup xwiki.virtual=1 in xwiki.cfg
- Set xwiki.virtual.redirect to the landing page you want people to go to if they try a non-existant wiki
- Restart your server
|
Document data
Attachments: 0
No attachments for this document
Comments: 1