Skip to content

Instantly share code, notes, and snippets.

@bortels
Last active December 17, 2015 18:39
Show Gist options
  • Save bortels/5655038 to your computer and use it in GitHub Desktop.
Save bortels/5655038 to your computer and use it in GitHub Desktop.
Install Apache with mod_ssl on RHEL for AWS (AMI6 baseline)
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