Vanstechelman.eu
   

Apache Proxy

LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule proxy_connect_module /usr/lib/apache2/modules/mod_proxy_connect.so


        #ProxyPreserveHost On
        ProxyPass / http://www.vanstechelman.eu/
        ProxyPassReverse / http://www.vanstechelman.eu/
        #ProxyPassReverseCookieDomain .www.vanstechelman.eu demosite
        ServerAdmin webmaster@localhost

        ErrorLog /var/log/apache2/error.log
        CustomLog /var/log/apache2/access.log combined




########################################################################################
# The configuration statements for the proxy which is listening on port 8080
########################################################################################


        SSLProxyEngine On
        ProxyRequests On
        # Don't add an extra via header for this proxy
        ProxyVia Off
        
                Order allow,deny
                Allow from all
        
        CustomLog /var/log/apache2/proxy_access.log combined


########################################################################################
# The configuration statements for the proxy which is listening on port 443
########################################################################################


        SSLProxyEngine On
        ProxyPass / https://www.vanstechelman.eu/
        ProxyPassReverse / https://www.vanstechelman.eu/
        ServerAdmin webmaster@localhost

        ErrorLog /var/log/apache2/error.log
        CustomLog /var/log/apache2/ssl_access.log combined

        #   SSL Engine Switch:
        #   Enable/Disable SSL for this virtual host.
        SSLEngine on

        # Result from make-ssl-cert generate-default-snakeoil --force-overwrite
        SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
        SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

        BrowserMatch ".*MSIE.*" \
                nokeepalive ssl-unclean-shutdown \
                downgrade-1.0 force-response-1.0