Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
- <system.webServer>
- <rewrite>
- <rules>
- <rule name="ReverseProxyInboundRule1" stopProcessing="true">
- <match url="(.*)" />
- <action type="Rewrite" url="http://192.168.0.37/{R:1}" />
- </rule>
- </rules>
- </rewrite>
- </system.webServer>
- </configuration>
- server {
- listen 443 ssl;
- listen [::]:443 ssl;
- listen 8443 ssl;
- listen [::]:8443 ssl;
- server_name subdomain.example.com;
- ssl_certificate /etc/letsencrypt/live/subdomain.example.com/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/subdomain.example.com/privkey.pem; # managed by Certbot
- proxy_set_header X-Forwarded-Proto $scheme;
- location /.well-known {
- proxy_set_header X-Forwarded-Proto $scheme;
- alias /var/www/repo.exit-reizen.nl/.well-known;
- }
- location / {
- proxy_set_header Host $http_host;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_pass http://localhost:6000;
- }
- client_max_body_size 50M;
- }
- server {
- listen 80;
- listen [::]:80;
- listen 8080;
- listen [::]:8080;
- port_in_redirect on;
- server_name subdomain.example.com;
- proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header Host $http_host;
- location /.well-known {
- proxy_set_header X-Forwarded-Proto $scheme;
- alias /var/www/subdomain.example.com/.well-known;
- }
- return 302 https://subdomain.example.com:8443$request_uri;
- }
Add Comment
Please, Sign In to add comment