Apache HTTPD

Rewrite to HTTPS

<VirtualHost *:80>
        RewriteEngine on
        RewriteLog /var/log/apache2/https_rewrite.log
        RewriteLogLevel warn
        RewriteCond %{SERVER_PORT} !^443$
        RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R]
</VirtualHost>


<IfModule mod_ssl.c>
    <VirtualHost *:443>
        ServerAdmin webmaster@website.com
        ServerName website.com
        DocumentRoot /var/www/website
        SSLEngine on
        SSLCertificateFile    /etc/ssl/certs/website.com.crt
        SSLCertificateKeyFile /etc/ssl/private/website.com.key
        SSLCertificateChainFile /etc/ssl/certs/GlobalSign_root_certificate.crt

        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Allow from all
        </Proxy>
        ProxyPass /servlet/ http://142.456.321.0/servlet/        
        ProxyPass /icons/ http://142.456.321.123/icons/        
        ProxyPassReverse /servlet/ http://142.187.66.210/servlet/        
        ProxyPassReverse /icons/ http://142.187.66.210/icons/        
        
        ErrorLog /var/log/apache2/website.error.log
        LogLevel warn
        CustomLog /var/log/apache2/website.access.log combined
    </VirtualHost>
</IfModule>

For an A+ config, https://mozilla.github.io/server-side-tls/ssl-config-generator/

mod_status

Configuration

Edit httpd.conf

LoadModule status_module modules/mod_status.so
    ExtendedStatus On

Either httpd.conf or distinct file

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from none
    Allow from all
</Location>
ProxyPass /server-status !

Then a2enconf for Debian/Ubuntu and /etc/init.d/httpd reload

UI

Console

watch -n 1 curl -s http://serveur:52000/server-status?auto

Browser

http://serveur:52000/server-status"