Add return to https in server for port 80
Showing
1 changed file
with
6 additions
and
0 deletions
| ... | @@ -56,6 +56,12 @@ | ... | @@ -56,6 +56,12 @@ |
| 56 | set_header: | 56 | set_header: |
| 57 | field: Host | 57 | field: Host |
| 58 | value: $host | 58 | value: $host |
| 59 | rewrite: | ||
| 60 | return: | ||
| 61 | code: 301 | ||
| 62 | url: https://$host$request_uri | ||
| 63 | custom_directives: | ||
| 64 | |||
| 59 | # - core: | 65 | # - core: |
| 60 | # listen: | 66 | # listen: |
| 61 | # - port: 8081 | 67 | # - port: 8081 | ... | ... |
-
Please register or sign in to post a comment