Guest User

123123

a guest
Apr 21st, 2021
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name domain.local www.domain.local;
  5. location / {
  6. return 301 https://domain.local$request_uri;
  7. }
  8. server {
  9. listen 443 ssl http2;
  10. listen [::]:443 ssl http2;
  11. server_name www.domain.local;
  12. return 301 $scheme://domain.local$request_uri;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment