Apache directive for configuring an Apache proxy server.
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 <VirtualHost *:80> #ProxyPreserveHost On ProxyPass / http://www.vanstechelman.eu/ ProxyPassReverse / http://www.vanstechelman.eu/ #ProxyPassReverseCookieDomain .www.vanstechelman.eu demosite ServerAdmin [email protected] ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined </VirtualHost> ######################################################################################## # The configuration statements for the proxy which is listening on port 8080 ######################################################################################## <VirtualHost *:8080> SSLProxyEngine On ProxyRequests On # Don't add an extra via header for this proxy ProxyVia Off <Proxy *> Order allow,deny Allow from all </Proxy> CustomLog /var/log/apache2/proxy_access.log combined </VirtualHost> ######################################################################################## # The configuration statements for the proxy which is listening on port 443 ######################################################################################## <VirtualHost _default_:443> SSLProxyEngine On ProxyPass / https://www.vanstechelman.eu/ ProxyPassReverse / https://www.vanstechelman.eu/ ServerAdmin [email protected] 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 </VirtualHost>
Tags:
