5etools Mirror Setup

Create a directory under /www

Clone the 2 git repos into this directory.

  git clone https://github.com/5etools-mirror-3/5etools-src.git /srv/data/www/5etools/
  git clone https://github.com/5etools-mirror-3/5etools-img.git /srv/data/www/5etools/img

To update

  cd /srv/data/www/5etools
  git pull
  cd/srv/data/www/5etools/img
  git pull

Make sure you recheck the file ownership.

Use this redirect for site

<VirtualHost *:80>
    ServerName 5etools.scottworld.net
    Redirect permanent / https://5etools.scottworld.net/
</VirtualHost>

<IfModule mod_ssl.c>
    <VirtualHost *:443>
        ServerName 5etools.scottworld.net
        DocumentRoot /srv/data/www/5etools/
        CustomLog ${APACHE_LOG_DIR}/5etools.log combined
        Include /etc/letsencrypt/options-ssl-apache.conf
        SSLCertificateFile /etc/letsencrypt/live/5etools.scottworld.net/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/5etools.scottworld.net/privkey.pem
        SSLCertificateChainFile /etc/letsencrypt/live/5etools.scottworld.net/chain.pem
        SSLCACertificateFile /etc/ssl/certs/ca-certificates.crt

        <Directory /srv/data/www/5etools/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Require all granted
        </Directory>
    </VirtualHost>
</IfModule>