16 lines
274 B
Plaintext
16 lines
274 B
Plaintext
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name example.org;
|
||
|
|
location / {
|
||
|
|
return 301 https://$host$request_uri;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
server {
|
||
|
|
listen 443 ssl;
|
||
|
|
server_name example.org;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass http://example.org; #for demo purposes
|
||
|
|
}
|
||
|
|
}
|