Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Use with apache

Yuuto Tokunaga edited this page Aug 23, 2014 · 2 revisions

Enable mod_proxy and mod_proxy_http by

sudo a2enmod proxy
sudo a2enmod proxy_http

Create /etc/apache2/site-available/syaro.conf (Ubuntu) and edit

<Location "/URL_PREFIX">
    ProxyPass http://localhost:8080/URL_PREFIX
    ProxyPassReverse http://localhost:8080/URL_PREFIX

    Require all granted
</Location>

If you want to use basic authorization,

<Location "/URL_PREFIX">
    ...
    AuthType Basic
    AuthName "Authorization required"
    AuthUserFile /path/to/.htpasswd
    Require user USER
</Location>

Enable site conf

sudo a2ensite syaro.conf

Restart apache

sudo service apache2 restart

Start syaro

syaro --url-prefix="URL_PREFIX" --wikiname="WIKI_NAME" --wikiroot=/path/to/wiki
Clone this wiki locally