Skip to content
Snippets Groups Projects
vitamui.conf 1.49 KiB
Newer Older
vitam-prg's avatar
vitam-prg committed
ServerName dev.vitamui.com
<VirtualHost *:443>
        ServerName dev.vitamui.com
        # Enable SSL for the Reverse proxy
        SSLProxyEngine on
        # Client certificate path
        # SSLProxyMachineCertificateFile /etc/{{apache_service}}/certs/keystore_client_{{ vitamui_site_name }}.pem
        SSLCertificateKeyFile [VITAM_UI_PATH]/deployment/playbooks/pki/dev/certs/nginx/nginx.key
	SSLCertificateFile [VITAM_UI_PATH]/deployment/playbooks/pki/dev/certs/nginx/nginx.crt
        # Client CA path
	#SSLProxyCACertificatePath /etc/{{apache_service}}/ca/{{ vitamui_site_name }}
        # Don't check the CN of the server's certificate
        SSLProxyCheckPeerCN off
        # Don't check the hostname of the server
        SSLProxyCheckPeerName off

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
	LogLevel debug

        KeepAlive Off
        ProxyPreserveHost On
        ProxyRequests On
        
	# cas
        ProxyPass /cas https://dev.vitamui.com:8080/cas
        ProxyPassReverse /cas https://dev.vitamui.com:8080/cas
        
	# identity
	<Location /identity>
		ProxyPass https://dev.vitamui.com:9001/identity
        	ProxyPassReverse https://dev.vitamui.com:9001/identity
		ProxyPreserveHost On
		#ProxyHTMLEnable On
        	#ProxyHTMLExtended On
		#ProxyHTMLURLMap https://dev.vitamui.com:9001/identity /
	</Location>

	# portal
        ProxyPass / https://dev.vitamui.com:9000/
        ProxyPassReverse / https://dev.vitamui.com:9000/
</VirtualHost>