Instiki
Running Instiki On Port Eighty

Many people ask:

I want to use Instiki since it’s so easy to setup, but how do I go about setting it up on port 80 without root access so that anyone can get at it?

You can start Instiki to run on any port including 80. But it’s very likely that it’ll conflict with an existing Apache installation. So then you can either just pick another port, like the Instiki default of 2500, and hope that the machine allows connections on that port. If it doesn’t, ask the admin to open it for you.

If neither of the above works, you can try your luck with mod_proxy and forward calls to 80 to your Instiki running on port 2500. If you have access to the httpd.conf, or a vhost that gets included by httpd.conf, something like this will work:

<VirtualHost *>
    ServerName wiki.mydomain.com
    ProxyRequests Off
    ProxyPass / http://127.0.0.1:2500/
    ProxyPassReverse / http://127.0.0.1:2500/
    <Proxy http://127.0.0.1:2500/*>
        Order deny,allow
        Allow from all
    </Proxy>
</VirtualHost>

Now you just need to point a domain like wiki.mydomain.com to the machine.guitar.mimbin.com:8080 There’s a bunch of free services for managing DNS records out there—http://www.dyndns.org/ is one (and for Danes, http://www.gratisdns.org/ is another).

If that doesn’t do it either (since you have to get Apache restarted at least once to get the vhost in), you can try with a .htaccess file:

RewriteEngine On
RewriteRule ^(.*)$ http://127.0.0.1:2500/$1 [P] [QSA]

That requires that you have the right to do mod_rewrite in your .htaccess file and that both mod_rewrite and mod_proxy is installed and turned on with the Apache running. Use the --binding command-line option:

ruby instiki.rb --binding 127.0.0.1 ...other options...