Apapche reverse proxy (mod_proxy)

mod_proxy: The main proxy module for Apache that manages connections and redirects them.
mod_proxy_http: This module implements the proxy features for HTTP and HTTPS protocols.

"vi /usr/local/apache2/conf/httpd.conf" ->
	LoadModule proxy_module modules/mod_proxy.so
	LoadModule proxy_http_module modules/mod_proxy_http.so

	####################################################	
	#https://httpoxy.org/#fix-now
	RequestHeader unset Proxy early

	LogLevel debug


	<VirtualHost *:80>
		ServerName mooreblog.ddns.net
		ServerAlias mooreblog.ddns.net

		ProxyPass / http://172.17.190.10/
		ProxyPassReverse / http://172.17.190.10/
	</VirtualHost>

	Listen 443
	<VirtualHost *:443>
		ServerName mooreblog.ddns.net
		ServerAlias mooreblog.ddns.net
		
		SSLProxyEngine On
		#ProxyPass / https://172.17.190.10/
		#ProxyPassReverse / https://172.17.190.10/
		
		#Redirect nach NON-SSL. Notwendig um Verkehr zu sniffen.
		ProxyPass / http://172.17.190.10/
		ProxyPassReverse / http://172.17.190.10/
		
		SSLEngine on
		SSLProxyVerify none
		SSLProxyCheckPeerCN off
		SSLProxyCheckPeerName off
		SSLProxyCheckPeerExpire off

		SSLCertificateFile /usr/local/apache2/conf/ssl/server.crt
		SSLCertificateKeyFile /usr/local/apache2/conf/ssl/server.nopass.key
		SSLCipherSuite kRSA:aNULL:DES:MD5:SSLv2
		SSLSessionCacheTimeout  600

	####################################################
	</VirtualHost>
	

Post Revisions:

This post has not been revised since publication.