Changes

Setup the Reverse Proxy
#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>
#Add a redirect (from HTTP to HTTPS) to Apache by running <pre>sudo nano /etc/apache2/sites-enabled/000-default.conf</pre> and adding the following under the '''<VirtualHost *:80>''' tag <pre>Redirect permanent /webtrees https://steamforge.net/webtrees</pre>
#Add the Proxy calls to Apache by running the following <pre>sudo nano /etc/apache2/sites-enabled/000-default-ssl.conf</pre> and adding the following under the '''<VirtualHost _default_:443>''' tag <pre>#webtrees&#10;<Location /webtrees>&#10; AuthType Basic&#10; AuthName "Enter username/password to access webtrees"&#10; AuthBasicProvider file&#10; AuthUserFile "/etc/apache2/.webtrees_htpasswd"&#10; Require valid-user&#10;&#10; ProxyPreserveHost On&#10; ProxyPass http://containername/webtrees&#10; ProxyPassReverse http://containername/webtrees&#10;</Location></pre> (#*leave off the first block about Authentication if you didn't create '''.webtrees_htpasswd'')'
[[Category: Linux]]