<IfModule mod_ssl.c>
	<VirtualHost _default_:443>
		ServerAdmin webmaster@localhost
				ServerName  localhost
                
                #
		ErrorLog ${APACHE_LOG_DIR}/error.log 
		CustomLog ${APACHE_LOG_DIR}/access.log combined env=!dontlog

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

		#   SSLCertificateFile directive is needed.
		SSLCertificateFile    /etc/apache2/ssl/publiccertificate.crt
		SSLCertificateKeyFile /etc/apache2/ssl/serveurcertificate.key

		SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
		CustomLog ${APACHE_LOG_DIR}/ssl_request_log \
   			"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

		
		
                ProxyPreserveHost On
                ProxyRequests Off

		LogLevel rewrite:trace3

	       	
        	ProxyPass        /request/uri balancer://mycluster maxattempts=6 timeout=60cd 
        	ProxyPassReverse /request/uri balancer://mycluster
	       
        	
		<Proxy  balancer://mycluster>
                	BalancerMember http://localhost:8080 route=1 timeout=6 retry=20
			ProxySet stickysession=ROUTEID
        	</Proxy>

	   		<Location "/request/uri">
			AuthType Digest
         	AuthName "PCCV"
			AuthDigestDomain  "/request/uri" "/proxy/uri"
         		AuthDigestProvider file
         		AuthUserFile /etc/apache2/auth/.digest_pw
         		Require valid-user
    		</Location>
	</VirtualHost>
</IfModule>
