====== Reverse Proxy ======
- VirtualHost on proxy server:
ServerName demo.bethicoleague.org
Redirect 301 / https://demo.bethicoleague.org/
ErrorLog ${APACHE_LOG_DIR}/http-error.log
CustomLog ${APACHE_LOG_DIR}/http-access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =demo.bethicoleague.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
ServerName demo.bethicoleague.org
ServerAdmin bernard@condrau.com
php_value date.timezone "Asia/Bangkok"
ErrorLog ${APACHE_LOG_DIR}/bco/joomla5-error.log
CustomLog ${APACHE_LOG_DIR}/bco/joomla5-access.log combined
SSLEngine on
RequestHeader set X-Forwarded-Proto "https"
ProxyRequests Off
ProxyPreserveHost On
ProxyPass "/" "http://serenity.condrau.com:8080/"
ProxyPassReverse "/" "http://serenity.condrau.com:8080/"
Require all granted
# Block aggressive spiders by giving 429, too many requests
Include conf-available/bco-spiders.conf
# Allow access for Bernard's locations only
Include conf-available/bco-remote-addr.conf
## make sure nobody gets the htaccess, README, COPYING or VERSION files
Require all denied
## Don't allow access to git directories
RedirectMatch 404 /\.git
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/bethicoleague.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/bethicoleague.com/privkey.pem
- VirtualHost on content server:# This is a proxied server, SSL is handled by the proxy
ServerAdmin bernard@condrau.com
DocumentRoot /home/bco/www/bethico/bethicoleague_joomla5
Alias /html/ /home/bco/html/
Options FollowSymlinks
AllowOverride All
Require all granted
Require all granted
ErrorLog ${APACHE_LOG_DIR}/joomla5-error.log
CustomLog ${APACHE_LOG_DIR}/joomla5-access.log combined
- Set Joomla Live URL in ''/configuration.php''