Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name domain.local www.domain.local;
- location / {
- return 301 https://domain.local$request_uri;
- }
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- server_name www.domain.local;
- return 301 $scheme://domain.local$request_uri;
- }
Advertisement
Add Comment
Please, Sign In to add comment