This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| joomla:reverseproxy [2026/05/19 22:54] – created Bernard Condrau | joomla:reverseproxy [2026/05/19 23:13] (current) – Bernard Condrau | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Reverse Proxy ====== | ====== Reverse Proxy ====== | ||
| + | - VirtualHost on proxy server:< | ||
| + | ServerName demo.bethicoleague.org | ||
| + | Redirect 301 / https:// | ||
| + | ErrorLog ${APACHE_LOG_DIR}/ | ||
| + | CustomLog ${APACHE_LOG_DIR}/ | ||
| + | RewriteEngine on | ||
| + | RewriteCond %{SERVER_NAME} =demo.bethicoleague.org | ||
| + | RewriteRule ^ https:// | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | ServerName demo.bethicoleague.org | ||
| + | ServerAdmin bernard@condrau.com | ||
| + | php_value date.timezone " | ||
| + | |||
| + | ErrorLog ${APACHE_LOG_DIR}/ | ||
| + | CustomLog ${APACHE_LOG_DIR}/ | ||
| + | |||
| + | SSLEngine on | ||
| + | RequestHeader set X-Forwarded-Proto " | ||
| + | ProxyRequests Off | ||
| + | ProxyPreserveHost On | ||
| + | ProxyPass "/" | ||
| + | ProxyPassReverse "/" | ||
| + | |||
| + | <Proxy *> | ||
| + | Require all granted | ||
| + | </ | ||
| + | < | ||
| + | |||
| + | # Block aggressive spiders by giving 429, too many requests | ||
| + | Include conf-available/ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | |||
| + | # Allow access for Bernard' | ||
| + | Include conf-available/ | ||
| + | </ | ||
| + | |||
| + | ## make sure nobody gets the htaccess, README, COPYING or VERSION files | ||
| + | <Files ~ " | ||
| + | Require all denied | ||
| + | </ | ||
| + | |||
| + | ## Don't allow access to git directories | ||
| + | < | ||
| + | RedirectMatch 404 /\.git | ||
| + | </ | ||
| + | |||
| + | Include / | ||
| + | SSLCertificateFile / | ||
| + | SSLCertificateKeyFile / | ||
| + | </ | ||
| + | </ | ||
| + | - VirtualHost on content server:< | ||
| + | < | ||
| + | |||
| + | ServerAdmin bernard@condrau.com | ||
| + | DocumentRoot / | ||
| + | Alias /html/ / | ||
| + | |||
| + | < | ||
| + | Options FollowSymlinks | ||
| + | AllowOverride All | ||
| + | Require all granted | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | Require all granted | ||
| + | </ | ||
| + | |||
| + | ErrorLog ${APACHE_LOG_DIR}/ | ||
| + | CustomLog ${APACHE_LOG_DIR}/ | ||
| + | </ | ||
| + | </ | ||
| - Set Joomla Live URL in ''/ | - Set Joomla Live URL in ''/ | ||