...
Once you have the SSL certificate, you can proceed to configure Apache:
Copy the certificate files to ${apache_home}/conf/CSR/
Open "${apache_home}conf/httpd.conf" file
Search for the "LoadModule ssl_module modules/mod_ssl.so" and remove any pound sign(#) at the start of the line (i.e. un-comment it)
- Add below section at the end of the file :after replacing the dummy values with real one.
Code Block |
---|
Listen 443 <VirtualHost _default_:443> ServerAdmin <admin@domain.com> DocumentRoot "Your root folder location" ServerName www.domain.com:443 ServerAlias domain.com:443 ErrorLog "${apache_home}/logs/anyFile-error.log" CustomLog "${apache_home}/logs/anyFile-access.log" SSLEngine on SSLCertificateFile "${apache_home}/conf/server.crt" SSLCertificateKeyFile "${apache_home}/conf/server.key" DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs" ServerAdmin biobank@yourdomain.edu ServerName biobank.yourdomain.edu SSLEngine on SSLCertificateFile "D:\Apache2.2\conf\CSR\biobank_cert.crt" SSLCertificateKeyFile "D:\Apache2.2\conf\CSR\biobank.key" RedirectMatch ^/$ /openspecimen ProxyPass /openspecimen ajp://localhost:8009/openspecimen ProxyPassReverse /openspecimen ajp://localhost:8009/openspecimen </VirtualHost> Note: Make sure that "SSLCertificateFile" and "SSLCertificateKeyFile" are properly located. |
...