View this PageEdit this PageUploads to this PageVersions of this PageHomeRecent ChangesSearchHelp Guide

How do I redirect from Apache to Swiki?

My company's Swiki is not accessible directly. There is a redirection from a apache server, so that we can use https. In httpd.conf we configured the redirection from 'apacheServer.myDomain.com/swiki' to 'internalSwikiIpAdress:swikiPort'. In general this works. The problem is that all the links and images in the swiki pages are wrong when I access the swiki via the apache server. When I look at the html source code of the page I realize that the links are kind of 'apacheServer.myDomain.com/aSwikiInstance' instead of 'apacheServer.myDomain.com/swiki/aSwikiInstance'. How can I change this?

Regards,
Christian Noack
One way that I have solved this kind of thing in the past is to run Apache as a reverse proxy and enable URL rewriting. This causes Apache to operate a virtual web server at your external address, and to modify any URL that it transmits to change references to the internal address to the external address. You can also turn on caching, which will take load off of the Swiki.

Would you be able to provide an excerpt from your httpd.conf file demonstrating how this is done?

Thanks,

Peter Burkholder
Apache as a "frontend" on top of Comanche using "reverse proxying" and "virtual hosting" hope this will help.

Isn't Comanche a configuration tool for Apache? The acronym stands for COnfiguration MANager for apaCHE in some circles.

Link to this Page

  • Swiki FAQ last edited on 7 May 2011 at 6:22 pm by 108-81-8-212.lightspeed.milwwi.sbcglobal.net