SHARE
TWEET

Untitled

a guest Feb 28th, 2020 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Listen 80
  2. Listen 443
  3.  
  4. <virtualhost *:80>
  5.   ProxyPreserveHost On
  6.   ServerName sub.example.de
  7.   Redirect permanent / https://sub.example.de/
  8. </virtualhost>
  9.  
  10. <IfModule mod_ssl.c>
  11. <VirtualHost *:443>
  12.     ServerName sub.example.de
  13.     ProxyPreserveHost On
  14.     SSLEngine On
  15.  
  16.     ProxyPass / http://localhost:8888/
  17.     ProxyPassReverse / http://localhost:8888/
  18.  
  19.     SSLCertificateFile /etc/letsencrypt/live/sub.example.de/fullchain.pem
  20.     SSLCertificateKeyFile /etc/letsencrypt/live/sub.example.de/privkey.pem
  21. </VirtualHost>
  22. </IfModule>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top