Apache on Raspberry Pi, for forwarding SSL to internal port

Here I am, and my rum is upstairs, and people are TALKING to me. PEOPLE.

This is all your fault, Dominic.

So, ssh into pi, because a Desktop for people who can handle it when their rum is upstairs.

apt-get install apache2 -y

echo ‘deb http://httpredir.debian.org/debian jessie-backports main contrib non-free’ > /etc/apt/sources.list.d/jessie-backports.list

apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 7638D0442B90D010
apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 8B48AD6246925553

apt-get update

apt-get install dehydrated-apache2 -y

echo “www.marvelous_website.com” > /etc/dehydrated/domains.txt

echo “CONTACT_EMAIL=me@marvelous_website.com” > /etc/dehydrated/conf.d/mail.sh

dehydrated -c

a2enmod ssl

cat >> /etc/apache2/sites-enabled/000-default.conf <
ServerAdmin webmaster@marvellous_website.com

ProxyPass / http://localhost:4001/
ProxyPassReverse / http://localhost:4001

DocumentRoot /var/www/html

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

SSLEngine On
SSLCertificateFile /var/lib/dehydrated/certs/marvellous_website.com/fullchain.pem
SSLCertificateKeyFile /var/lib/dehydrated/certs/marvellous_website.com/privkey.pem


systemctl restart apache2

Leave a Reply

Your email address will not be published. Required fields are marked *