How to install http & https in centos 7
[ # root@ ashish ] yum -y install httpd httpd-manual mod_ssl mod_wsgi
[ # root@ ashish ] systemctl enable httpd.service
[ # root@ ashish ] systemctl start httpd.service
[ # root@ ashish ] firewall-cmd --permenent --add-service=http
[ # root@ ashish ] firewall-cmd --permenent --add-service=https
[ # root@ ashish ] firewall-cmd --reload
[ # root@ ashish ] echo "hello world" > /var/www/html/index.html
[ # root@ ashish ] curl http://localhost
[ # root@ ashish ] curl -k https://localhost
[ # root@ ashish ] systemctl enable httpd.service
[ # root@ ashish ] systemctl start httpd.service
[ # root@ ashish ] firewall-cmd --permenent --add-service=http
[ # root@ ashish ] firewall-cmd --permenent --add-service=https
[ # root@ ashish ] firewall-cmd --reload
[ # root@ ashish ] echo "hello world" > /var/www/html/index.html
[ # root@ ashish ] curl http://localhost
[ # root@ ashish ] curl -k https://localhost
Leave a Comment