1.052
Bearbeitungen
KKeine Bearbeitungszusammenfassung |
|||
Zeile 33: | Zeile 33: | ||
listen 80; | listen 80; | ||
server_name my.domain.de; | server_name my.domain.de; | ||
location / { | |||
include /etc/nginx/proxy_params; | |||
proxy_pass http://127.0.0.1:6081; | |||
} | |||
} | } | ||
</syntaxhighlight>HTTP *:80 (Mit Umleitung auf HTTPS):<syntaxhighlight lang="bash" line="1"> | </syntaxhighlight>HTTP *:80 (Mit Umleitung auf HTTPS):<syntaxhighlight lang="bash" line="1"> | ||
Zeile 39: | Zeile 43: | ||
listen 80; | listen 80; | ||
server_name my.domain.de; | server_name my.domain.de; | ||
return 301 https://$host$request_uri; | |||
} | } | ||
</syntaxhighlight>HTTPS *:443<syntaxhighlight lang="bash" line="1"> | </syntaxhighlight>HTTPS *:443<syntaxhighlight lang="bash" line="1"> |