I have configured HTTPS Web Server in RedHat
I changed the file
# /etc/httpd/conf/httpd.conf
<VirtualHost 192.168.1.5:80>
Documentroot /var/www/html/
DirectoryIndex index.html
ServerAdmin
root@station5.example.com
ServerName station5.example.com
</VirtualHost>
and I created the certificate in
# cd /etc/pki/tls/certs/
# make server.key
# make server.crt
# cp server.key /etc/pki/tls/private/
and then I edited the file
# cd /etc/httpd/conf.d/ssl.conf
these are the following files that I edited
85 ServerName station5.example.com:443
112 SSLCertificateFile /etc/pki/tls/certs/server.crt
119 SSLCertificateKeyFile /etc/pki/tls/private/server.key
then I restarted the service
httpd
the I opened the brower and then I entered the URL: station5.example.com
it came as
http://station5.example.com
I want it to come as
https://station5.example.com, automatically
Note: One of my friend told me , ServerAlias should be used , but I cant understand
Kindly please help me , Thanks in advance
~