RemoteCPU

Just a Bunch of retro babble

Letsencrypt with Apache Reverse Proxy

May 21, 2018 Apache LXC

Sample vhost configuration:

<VirtualHost *:80>
ServerName dos.archive.computer

ServerAdmin webmaster@localhost

ProxyPreserveHost On
DocumentRoot /var/www/html/dos.archive.computer
ProxyPass /.well-known !
ProxyPass / http://10.0.3.10/
ProxyPassReverse / http://10.0.3.10/

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

#The below lines are just for auto-redirecting to https

RewriteEngine on
RewriteCond %{SERVER_NAME} =dos.archive.computer
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

</VirtualHost>

Create .well-known folder

wget https://dl.eff.org/certbot-auto
chmod a+x ./certbot-auto

./certbot-auto

setup crontab with the follwing:

30 2 * * 1 /usr/local/sbin/certbot-auto renew >> /var/log/letsencrypt-renew.log

Above line really depends on where you installed certbot-auto – sometimes it will be in the root home directory if thats where you did the wget to.

apacheletsencryptLXCreverse proxy

LXC Container Notes

Windows XP Network Level Authentication

Tags
86Box 640CD A508IDE Amiga amiga 600 amiga 1200 apache Asimcdfs backup boot disk cf CFIDE compact flash DOS Ethernet Floppy IDE Kipper2k letsencrypt LXC MAX Transfer MorphOS MS-DOS PCem pcmcia RDP Remote Desktop reverse proxy Synergy SysInfo USB Vampire Windows XP
Recent Posts
  • How to Fix Load Library Error 126 on Windows 10
  • How to Change the RDP Listening Port on Windows
  • Windows XP Network Level Authentication
  • Letsencrypt with Apache Reverse Proxy
  • LXC Container Notes
Recent Comments
    Archives
    • February 2020
    • January 2020
    • May 2018
    • April 2018
    • January 2018
    • December 2017
    • April 2016
    • August 2015
    • December 2014
    • November 2014
    • October 2014
    Categories
    • Amiga
    • Apache
    • LXC
    • Macintosh
    • MorphOS
    • PC
    • Uncategorized
    • Vampire V2-600
    • Windows 10
    • Windows 7
    • Windows XP
    Meta
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Proudly powered by WordPress | Theme: Doo by ThemeVS.