- How to disable directory browsing in apache/httpd?
open httpd.conf and find the line that looks as follows:
Options Includes Indexes FollowSymLinks MultiViews
then remove word Indexes and save the file. The line should look like this one:
Options Includes FollowSymLinks MultiViews
2. Configure httpd SSL
# yum install mod_ssl
# make a SSL certificate, go to /etc/pki/tls/certs
# openssl genrsa -des3 -out cert.key 2048
# openssl req -new -key cert.key -out cert.csr
# openssl x509 -req -in cert.csr -days 365 -signkey cert.key -out ca.crt
# yum install mod_ssl
# make a SSL certificate, go to /etc/pki/tls/certs
# openssl genrsa -des3 -out cert.key 2048
# openssl req -new -key cert.key -out cert.csr
# openssl x509 -req -in cert.csr -days 365 -signkey cert.key -out ca.crt
2.edit ssl.conf file ( /etc/httpd/conf.d/ssl.conf)
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/certs/cert.key
# service httpd start
3. To enable reverse proxy in in https
add below line in end of httpd.conf file.
ProxyPass /ezmcom http://localhost:8080/ezmcom
ProxyPassReverse /ezmcom http://localhost:8080/ezmcom
3. To enable reverse proxy in in https
add below line in end of httpd.conf file.
ProxyPass /ezmcom http://localhost:8080/ezmcom
ProxyPassReverse /ezmcom http://localhost:8080/ezmcom
Note: To redirect SSL portal
- Enable htppd ssl
- copy and paste below line in httpd.conf file and restart
SSLProxyEngine On
RequestHeader set Front-End-Https "On"