source: code/trunk/example/mai.nginx@ 72

Last change on this file since 72 was 71, checked in by yakumo.izuru, 7 weeks ago

今では重荷がなくなったので...

File size: 455 bytes
Line 
1server {
2 listen 80;
3 listen [::]:80;
4 server_name mai.example.org;
5
6 location / {
7 return 301 https://$host$request_uri;
8 }
9}
10
11server {
12 listen 443 ssl;
13 listen [::]:443 ssl;
14 server_name mai.example.org;
15
16 ssl_certificate /path/to/fullchain.pem;
17 ssl_certificate_key /path/to/privkey.pem;
18
19 location / {
20 proxy_set_header X-Forwarded-For $remote_addr;
21 proxy_pass http://localhost:5000;
22 }
23}
Note: See TracBrowser for help on using the repository browser.