1,575
edits
Changes
→Setup the Reverse Proxy
=Setup the Reverse Proxy=
#On your webtrees container modify line 173 of ''/var/www/html/webtrees/includes/sessions.php'' by running <pre>sudo nano /var/www/html/includes/sessions.php</pre> and changing <prestyle="color: red">define('WT_BASE_URL', $base_uri);</pre> to <prestyle="color: green">define('WT_BASE_URL', 'https://mypublicdomain.com/webtrees/');</pre>
#Log into your Reverse Proxy machine/container (assumed to be on Debian 9 with permanent redirects from http to https)
#If you want to put an ''htpasswd'' based password on the front of the site then create an htpasswd file by running <pre>sudo htpasswd -c /etc/apache2/.webtrees_htpasswd username</pre>