|
1 | | -# You may add here your |
2 | | -# server { |
3 | | -# ... |
4 | | -# } |
5 | | -# statements for each of your virtual hosts to this file |
6 | | - |
7 | | -## |
8 | | -# You should look at the following URL's in order to grasp a solid understanding |
9 | | -# of Nginx configuration files in order to fully unleash the power of Nginx. |
10 | | -# http://wiki.nginx.org/Pitfalls |
11 | | -# http://wiki.nginx.org/QuickStart |
12 | | -# http://wiki.nginx.org/Configuration |
13 | | -# |
14 | | -# Generally, you will want to move this file somewhere, and start with a clean |
15 | | -# file but keep this around for reference. Or just disable in sites-enabled. |
16 | | -# |
17 | | -# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. |
18 | | -## |
19 | | - |
20 | 1 | server { |
21 | 2 | listen 443 ssl http2; |
22 | | - server_name loglist.net; |
| 3 | + server_name loglist.xyz; |
23 | 4 | include /etc/nginx/ssl.conf; |
24 | 5 |
|
25 | 6 | location / { |
26 | 7 | proxy_set_header X-Forwarded-Host $host; |
27 | 8 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
28 | 9 | proxy_set_header X-Forwarded-Proto $scheme; |
29 | | - proxy_set_header Host loglist.net; |
| 10 | + proxy_set_header Host loglist.xyz; |
30 | 11 | proxy_http_version 1.1; |
31 | 12 | proxy_pass http://localhost:9000/; |
32 | 13 | } |
33 | 14 | } |
34 | 15 |
|
35 | 16 | server { |
36 | 17 | listen 443 ssl http2; |
37 | | - server_name *.loglist.net; |
| 18 | + server_name *.loglist.xyz; |
38 | 19 | include /etc/nginx/ssl.conf; |
39 | 20 |
|
40 | 21 | location / { |
41 | | - return 301 https://loglist.net$request_uri; |
| 22 | + return 301 https://loglist.xyz$request_uri; |
42 | 23 | } |
43 | 24 | } |
44 | 25 |
|
45 | 26 | server { |
46 | | - listen 80; |
47 | | - server_name loglist.net; |
| 27 | + listen 80; |
| 28 | + server_name loglist.xyz; |
48 | 29 |
|
49 | | - location / { |
50 | | - rewrite ^(.*)$ https://loglist.net$1 permanent; |
51 | | - } |
| 30 | + location / { |
| 31 | + rewrite ^(.*)$ https://loglist.xyz$1 permanent; |
| 32 | + } |
52 | 33 | } |
53 | 34 |
|
54 | 35 | server { |
55 | | - listen 80; |
56 | | - server_name *.loglist.net; |
57 | | - location / { |
58 | | - return 301 https://loglist.net$request_uri; |
59 | | - } |
| 36 | + listen 80; |
| 37 | + server_name *.loglist.xyz; |
| 38 | + location / { |
| 39 | + return 301 https://loglist.xyz$request_uri; |
| 40 | + } |
60 | 41 | } |
0 commit comments