TurnKey Linux Virtual Appliance Library

Move Root for TurnKey MediaWiki to /w

Firstly to offer my thanks for the developers of these truely excellent appliances! I hope also that someone can help me.

I have the MediaWiki appliance running, but would like to move the content to /w, in order that I can reverse proxy it from another web site. Ultimately,

www.example.com - goes to one server
www.example.com/wiki - goes to the wiki

However the default mediawiki install seems to be in a root, hence it's tricky to reverse proxy this (needs lots of rewrites).

I followed some guides to move the content to /w then create an alias, and finally configure x-forward-for to get the right client IPs in,

- http://www.mediawiki.org/wiki/Manual:Short_URL
- http://www.mediawiki.org/wiki/Manual:Varnish_caching

... but now the three administration sites (12320, 12321 and 12322) are broken!

Any help with an "official" method to move wiki to /w would be greatly appreciated.
Jeremy's picture

I'm no LAMP expert but what about using a sub-domain instead?

I would imagine that would be an easier way of solving your problem. Then you would have www.example.com for your website and wiki.example.com for your wiki. You should be able to easily achieve that with apache.

Thanks

Hi, many thanks for taking the time to reply.  I must have made some mistakes when working out how to do this originally, as I created a new VM and performed the steps cleanly, and all works as it should :)

And here it is - http://blog.peacon.co.uk/wiki/Publishing_TurnKey_MediaWiki_via_NginX

Thanks,

James.

Thanks,

James

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)