Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HTTPS to HTTP in Amazon Linux server
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.