Advertisement
Guest User

Untitled

a guest
Jan 16th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.24 KB | None | 0 0
  1. # Serve local servers on http-requests expect redirect / requests to https
  2. server {
  3.         listen 80 default_server;
  4.         server_name .site.my;
  5.         location = / { return 301 https://$host; }
  6.         location / { root /www; }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement