Advertisement
Guest User

Untitled

a guest
Apr 1st, 2023
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName mail.deko.yt
  3. ServerAlias autodiscover.*
  4. ServerAlias autoconfig.*
  5. RewriteEngine on
  6.  
  7. RewriteCond %{HTTPS} off
  8. RewriteRule ^/?(.*) https://%{HTTP_HOST}/$1 [R=301,L]
  9.  
  10. ProxyPass / http://127.0.0.1:8080/
  11. ProxyPassReverse / http://127.0.0.1:8080/
  12. ProxyPreserveHost On
  13. ProxyAddHeaders On
  14. RequestHeader set X-Forwarded-Proto "http"
  15. </VirtualHost>
  16. <VirtualHost *:443>
  17. ServerName mail.deko.yt
  18. ServerAlias autodiscover.*
  19. ServerAlias autoconfig.*
  20.  
  21. # You should proxy to a plain HTTP session to offload SSL processing
  22. ProxyPass /Microsoft-Server-ActiveSync http://127.0.0.1:8080/Microsoft-Server-ActiveSync connectiontimeout=4000
  23. ProxyPassReverse /Microsoft-Server-ActiveSync http://127.0.0.1:8080/Microsoft-Server-ActiveSync
  24. ProxyPass / http://127.0.0.1:8080/
  25. ProxyPassReverse / http://127.0.0.1:8080/
  26. ProxyPreserveHost On
  27. ProxyAddHeaders On
  28. RequestHeader set X-Forwarded-Proto "https"
  29.  
  30. SSLCertificateFile /etc/letsencrypt/live/deko.yt/fullchain.pem
  31. SSLCertificateKeyFile /etc/letsencrypt/live/deko.yt/privkey.pem
  32.  
  33. # Wenn Sie einen HTTPS-Host als Proxy verwenden möchten:
  34. #SSLProxyEngine On
  35.  
  36. # Wenn Sie einen Proxy für einen nicht vertrauenswürdigen HTTPS-Host einrichten wollen:
  37. #SSLProxyVerify none
  38. #SSLProxyCheckPeerCN off
  39. #SSLProxyCheckPeerName off
  40. #SSLProxyCheckPeerExpire off
  41. </VirtualHost>
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement