Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
joomla:reverseproxy [2026/05/19 23:04] Bernard Condraujoomla:reverseproxy [2026/05/19 23:13] (current) Bernard Condrau
Line 6: Line 6:
         ErrorLog ${APACHE_LOG_DIR}/http-error.log         ErrorLog ${APACHE_LOG_DIR}/http-error.log
         CustomLog ${APACHE_LOG_DIR}/http-access.log combined         CustomLog ${APACHE_LOG_DIR}/http-access.log combined
-RewriteEngine on +        RewriteEngine on 
-RewriteCond %{SERVER_NAME} =demo.bethicoleague.org +        RewriteCond %{SERVER_NAME} =demo.bethicoleague.org 
-RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]+        RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
 </VirtualHost> </VirtualHost>
  
Line 21: Line 21:
         SSLEngine on         SSLEngine on
         RequestHeader set X-Forwarded-Proto "https"         RequestHeader set X-Forwarded-Proto "https"
-#       RequestHeader set X-Forwarded-Proto "https" env=HTTPS 
-#       SetEnvIfNoCase X-Forwarded-Proto https HTTPS=on 
         ProxyRequests Off         ProxyRequests Off
         ProxyPreserveHost On         ProxyPreserveHost On
Line 32: Line 30:
         </Proxy>         </Proxy>
         <Location "/">         <Location "/">
-                #ProxyPass "http://serenity.condrau.com:8080/" 
-                #ProxyPassReverse "http://serenity.condrau.com:8080/" 
- 
-                # Allow access for bco's locations only 
-                #Include conf-available/bco-remote-addr.conf 
- 
-                # Allow access for private browsers only 
-                # Include conf-available/bco-user-agent.conf 
  
                 # Block aggressive spiders by giving 429, too many requests                 # Block aggressive spiders by giving 429, too many requests
Line 46: Line 36:
  
         <Location "/html/">         <Location "/html/">
-                ProxyPass "http://serenity.condrau.com:8080/html/" 
-                ProxyPassReverse "http://serenity.condrau.com:8080/html/" 
  
                 # Allow access for Bernard's locations only                 # Allow access for Bernard's locations only
                 Include conf-available/bco-remote-addr.conf                 Include conf-available/bco-remote-addr.conf
- 
-                # Allow access for private browsers only 
-                # Include conf-available/bco-user-agent.conf 
- 
-                # Block aggressive spiders by giving 429, too many requests 
-                Include conf-available/bco-spiders.conf 
         </Location>         </Location>
  
Line 72: Line 54:
 SSLCertificateFile /etc/letsencrypt/live/bethicoleague.com/fullchain.pem SSLCertificateFile /etc/letsencrypt/live/bethicoleague.com/fullchain.pem
 SSLCertificateKeyFile /etc/letsencrypt/live/bethicoleague.com/privkey.pem SSLCertificateKeyFile /etc/letsencrypt/live/bethicoleague.com/privkey.pem
 +</VirtualHost>
 +</code>
 +  - VirtualHost on content server:<code># This is a proxied server, SSL is handled by the proxy
 +<VirtualHost *:8080>
 +
 +        ServerAdmin bernard@condrau.com
 +        DocumentRoot /home/bco/www/bethico/bethicoleague_joomla5
 +        Alias /html/ /home/bco/html/
 +
 +        <Directory /home/bco/www/bethico/bethicoleague_joomla5/>
 +                Options FollowSymlinks
 +                AllowOverride All
 +                Require all granted
 +        </Directory>
 +
 +        <Directory /home/bco/html/>
 +                Require all granted
 +        </Directory>
 +
 +        ErrorLog ${APACHE_LOG_DIR}/joomla5-error.log
 +        CustomLog ${APACHE_LOG_DIR}/joomla5-access.log combined
 </VirtualHost> </VirtualHost>
 </code> </code>
   - Set Joomla Live URL in ''/configuration.php''   - Set Joomla Live URL in ''/configuration.php''