Commit 7eb3c7c 1 parent 85bff2a commit 7eb3c7c Copy full SHA for 7eb3c7c
File tree 1 file changed +32
-5
lines changed
1 file changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -13,17 +13,44 @@ http {
13
13
sendfile on ;
14
14
keepalive_timeout 65 ;
15
15
16
+ # Server block for the domain
16
17
server {
17
18
listen 80 ;
18
- server_name localhost ;
19
+ server_name heartlink.slghive.fr ;
19
20
21
+ location / {
22
+ proxy_pass http://116.202.238.184;
23
+ proxy_set_header Host $host ;
24
+ proxy_set_header X-Real-IP $remote_addr ;
25
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
26
+ proxy_set_header X-Forwarded-Proto $scheme ;
27
+ }
20
28
21
- location / {
22
- root /usr/share/nginx/ html;
23
- index index. html;
24
- try_files $uri $uri / /index.html;
29
+ error_page 500 502 503 504 /50x.html;
30
+ location = /50x. html {
31
+ root /usr/share/nginx/ html;
32
+ }
25
33
}
26
34
35
+ # Server block for the IP address to redirect to the domain
36
+ server {
37
+ listen 80 ;
38
+ server_name 116.202.238.184 ;
39
+
40
+ return 301 http://heartlink.slghive.fr$request_uri ;
41
+ }
42
+
43
+ # Default server block (optional, can be removed if not needed)
44
+ server {
45
+ listen 80 ;
46
+ server_name localhost;
47
+
48
+ location / {
49
+ root /usr/share/nginx/html;
50
+ index index.html;
51
+ try_files $uri $uri / /index.html;
52
+ }
53
+
27
54
error_page 500 502 503 504 /50x.html;
28
55
location = /50x.html {
29
56
root /usr/share/nginx/html;
You can’t perform that action at this time.
0 commit comments