Difference between revisions of "User:StasFomin/SSLtoHTTP"

From Wiki4Intranet
Jump to: navigation, search
(Created page with "<pre> <VirtualHost *:5443> ServerName centoskat.example.com ## Vhost docroot DocumentRoot "/usr/share/foreman/public" ## Directories, there should at least be a decl...")
 
 
Line 29: Line 29:
 
   ProxyPass        /  http://localhost:3000/
 
   ProxyPass        /  http://localhost:3000/
 
   ProxyPassReverse /  http://localhost:3000
 
   ProxyPassReverse /  http://localhost:3000
  RedirectMatch    ^/$ https://centoskat.example.com:3000/
+
RedirectMatch    ^/$ https://centoskat.example.com:3000/
 
</VirtualHost>
 
</VirtualHost>
 
</pre>
 
</pre>

Latest revision as of 15:58, 14 January 2016

<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>