Setup apache2 proxy

From AcrodusWiki
Revision as of 15:25, 12 August 2025 by Alex (talk | contribs) (Created page with "=Example of how to setup apache2 config= This is an example of the config for Vikunjer apache2 proxy. Vikunjer listens on port 3456, to access this without specifying the port the following config file was added. /etc/apache2/sites-enabled/vikunja.conf <pre> <virtualHost *:80> ServerName task.acrodus.uk ServerAlias www.task.acrodus.uk ProxyPreserveHost On ProxyRequests Off ProxyPass / http://localhost:3456/ ProxyPassReverse / http://localhost:3456/ </pre> Also had to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example of how to setup apache2 config

This is an example of the config for Vikunjer apache2 proxy. Vikunjer listens on port 3456, to access this without specifying the port the following config file was added.

/etc/apache2/sites-enabled/vikunja.conf

<virtualHost *:80>
ServerName task.acrodus.uk
ServerAlias www.task.acrodus.uk
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://localhost:3456/
ProxyPassReverse / http://localhost:3456/

Also had to enable the proxy modules for apache 2 which can be done from the command line with the following command

a2enmod proxy & a2enmod proxy_http