Last active
December 17, 2015 18:39
-
-
Save bortels/5655038 to your computer and use it in GitHub Desktop.
Install Apache with mod_ssl on RHEL for AWS (AMI6 baseline)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum -y install httpd httpd-tools mod_ssl | |
sudo cat <<MODSSL >>/etc/httpd/conf/httpd.conf | |
<VirtualHost *:443> | |
SSLEngine on | |
SSLCertificateFile /etc/pki/tls/certs/localhost.crt | |
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key | |
<Directory /var/www/html> | |
AllowOverride All | |
</Directory> | |
DocumentRoot /var/www/html | |
ServerName sandbox.bh.intuit.com | |
</VirtualHost> | |
MODSSL | |
sudo chkconfig httpd on | |
sudo service httpd start | |
sudo touch /var/www/html/index.html | |
sudo chmod og+r /var/www/html/index.html | |
sudo chown ec2-user /var/www/html/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment