Guest User

Untitled

a guest
Aug 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name="ReverseProxyInboundRule1" stopProcessing="true">
  7. <match url="(.*)" />
  8. <action type="Rewrite" url="http://192.168.0.37/{R:1}" />
  9. </rule>
  10. </rules>
  11. </rewrite>
  12. </system.webServer>
  13. </configuration>
  14.  
  15. server {
  16. listen 443 ssl;
  17. listen [::]:443 ssl;
  18. listen 8443 ssl;
  19. listen [::]:8443 ssl;
  20.  
  21. server_name subdomain.example.com;
  22. ssl_certificate /etc/letsencrypt/live/subdomain.example.com/fullchain.pem; # managed by Certbot
  23. ssl_certificate_key /etc/letsencrypt/live/subdomain.example.com/privkey.pem; # managed by Certbot
  24. proxy_set_header X-Forwarded-Proto $scheme;
  25.  
  26. location /.well-known {
  27. proxy_set_header X-Forwarded-Proto $scheme;
  28. alias /var/www/repo.exit-reizen.nl/.well-known;
  29. }
  30. location / {
  31. proxy_set_header Host $http_host;
  32. proxy_set_header X-Forwarded-Proto $scheme;
  33. proxy_pass http://localhost:6000;
  34. }
  35. client_max_body_size 50M;
  36.  
  37. }
  38. server {
  39. listen 80;
  40. listen [::]:80;
  41. listen 8080;
  42. listen [::]:8080;
  43. port_in_redirect on;
  44. server_name subdomain.example.com;
  45. proxy_set_header X-Forwarded-Proto $scheme;
  46. proxy_set_header Host $http_host;
  47. location /.well-known {
  48. proxy_set_header X-Forwarded-Proto $scheme;
  49. alias /var/www/subdomain.example.com/.well-known;
  50. }
  51. return 302 https://subdomain.example.com:8443$request_uri;
  52. }
Add Comment
Please, Sign In to add comment