User:StasFomin/SSLtoHTTP
From Wiki4Intranet
<VirtualHost *:5443> ServerName centoskat.example.com ## Vhost docroot DocumentRoot "/usr/share/foreman/public" ## Directories, there should at least be a declaration for /usr/share/foreman/public ## Logging ErrorLog "/var/log/httpd/foreman-debug-ssl_error_ssl.log" ServerSignature Off CustomLog "/var/log/httpd/foreman-debug-ssl_access_ssl.log" combined ## Server aliases ServerAlias foreman ## SSL directives SSLEngine on SSLCertificateFile "/etc/pki/katello/certs/katello-apache.crt" SSLCertificateKeyFile "/etc/pki/katello/private/katello-apache.key" SSLCertificateChainFile "/etc/pki/katello/certs/katello-default-ca.crt" SSLCACertificatePath "/etc/pki/tls/certs" SSLCACertificateFile "/etc/pki/katello/certs/katello-default-ca.crt" SSLVerifyClient optional SSLVerifyDepth 3 SSLOptions +StdEnvVars +ExportCertData ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000 # RedirectMatch ^/$ https://centoskat.example.com:3000/ </VirtualHost>