Apache Encrypted Web Server How To Configure Encrypted Web Server

System1: Encrypted apache web server
Step 1:install mod_ssl and httpd package
#yum install httpd mod_ssl Step 2:Create html file
#vim /var/www/html/main.html
<html>
<head><title>Sample Web Page</title></head>
<body>
<font size=”40” color=”FF0000”>
<marquee>This is Home Page of Rhel5.com</marquee>
</font></body></html>
Step 3:Add html page to http configuration file
#vim /etc/httpd/conf/httpd.conf
Line no: 390
Directory Index main.html index.html index.html.var
Line no:last line
Apache Encrypted Web Server
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
these three entries are specified in /etc/httpd/conf.d/ssl.conf
Line no:95
Line no:112
Line no:119
Step 4:restart the http service
#chkconfig httpd on
#service httpd restart
sys1:
add dns entries in /etc/resolv.conf
#vim /etc/resolv.conf
search rhel5.com
nameserver 192.168.0.10
Step 5:open firefox and type the following url in address bar
http://system1.rhel5.com
the error occurs then type the url
#https://system1.rhel5.com
Finally apache encrypted Web server configures successfully.

Post a Comment

0 Comments