Skip to content

Instantly share code, notes, and snippets.

@patriciogonzalezvivo
Last active August 30, 2016 14:39
Show Gist options
  • Save patriciogonzalezvivo/f5d76772e982e9160134613e0850c1fc to your computer and use it in GitHub Desktop.
Save patriciogonzalezvivo/f5d76772e982e9160134613e0850c1fc to your computer and use it in GitHub Desktop.
HTTPS to HTTP in Amazon Linux server
#!/bin/bash
sudo yum update -y
# Install packages
sudo yum install -y httpd24 mod24_ssl php56 mysql55-server php56-mysqlnd
# Start the Apache web server
sudo service httpd start
# Configure the Apache web server to start at each system boot.
sudo chkconfig httpd on
cd /etc/ssl/certs
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout paparazzi.key -out paparazzi.crt
sudo vim /etc/httpd/conf.d/ssl.conf
##
SSLCertificateFile /etc/ssl/certs/paparazzi.crt
SSLCertificateKeyFile /etc/ssl/certs/paparazzi.key
ProxyPreserveHost On
ProxyRequests On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment