Advertisement
Guest User

Untitled

a guest
May 2nd, 2021
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <VirtualHost _default_:80>
  2.  
  3. ServerName photos.mysubdomain.duckdns.org
  4.  
  5. ProxyPreserveHost On
  6. ProxyPass / http://192.168.0.190:2342/
  7. ProxyPassReverse / http://192.168.0.190:2342/
  8.  
  9. RewriteEngine on
  10. RewriteCond %{SERVER_NAME} =photos.mysubdomain.duckdns.org
  11. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  12. </VirtualHost>
  13.  
  14. # Listen 443
  15.  
  16. <VirtualHost _default_:443>
  17.  
  18. SSLEngine On
  19. SSLProxyEngine On
  20.  
  21. ServerName photos.mysubdomain.duckdns.org
  22.  
  23. ProxyPreserveHost On
  24. ProxyPass / http://192.168.0.190:2342/
  25. ProxyPassReverse / http://192.168.0.190:2342/
  26.  
  27. SSLCertificateFile /etc/letsencrypt/live/photos.mysubdomain.duckdns.org/fullchain.pem
  28. SSLCertificateKeyFile /etc/letsencrypt/live/photos.mysubdomain.duckdns.org/privkey.pem
  29. Include /etc/letsencrypt/options-ssl-apache.conf
  30. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement