nginx redirect
This commit is contained in:
parent
f5e81ad720
commit
3d7d672977
3
nginx/README.md
Normal file
3
nginx/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# nginx
|
||||
|
||||
- [`redirect`](redirect)
|
18
nginx/redirect
Normal file
18
nginx/redirect
Normal file
@ -0,0 +1,18 @@
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
server_name SITE_URL;
|
||||
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
|
||||
server_name SITE_URL;
|
||||
|
||||
ssl_certificate PATH_TO_PEM;
|
||||
ssl_certificate_key PATH_TO_PEM;
|
||||
|
||||
root FOLDER;
|
||||
}
|
Loading…
Reference in New Issue
Block a user