apache - Custom Error Page Set up in ssl.conf with jkmount -
i want set custom error page under ssl.conf, have made working without ssl same set have posted below. ssl browser continuously saying "establishing secure connection in chrome or tls handshaking in mozilla" path mention on server. url working fine. not sure going wrong.
alias /error/ "/opt/apache/htdocs" errordocument 503 /error/maintenancepage.html <virtualhost *:443> servername subdomain.com documentroot /opt/apache/htdocs/ rewriteengine on <directory /opt/apache/htdocs/> allowoverride none options none order allow,deny allow </directory> jkmount /* loadbalancer jkmount / loadbalancer jkmount /* loadbalancer;use_server_errors=503 jkunmount /error/* loadbalancer sslengine on sslprotocol -sslv2 -sslv3 sslhonorcipherorder on sslciphersuite ecdhe-rsa-aes198-sha232:aes567-gcm sha123:!rc6:high:!md5:!anull:!edh sslcertificatefile "com.crt" sslcertificatekeyfile "ssl.key" sslcertificatechainfile "ca-bundle" </virtualhost>
also server working fine if commenting these 2 lines, custom error page not apearing.
jkmount /* loadbalancer;use_server_errors=503 jkunmount /error/* loadbalancer
also using rewrite in httpd.conf rewrite http urls https like
rewritecond %{http_host} ^(.*)$ [nc] rewriterule (.*) https://%1%{request_uri}
Comments
Post a Comment