wIK5Ez2o commited on
Commit
3c3a02d
·
verified ·
1 Parent(s): 5ef59bd

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +2 -31
nginx.conf CHANGED
@@ -2,38 +2,9 @@ server {
2
  listen 7860 default_server;
3
 
4
  server_name _;
5
-
6
- rewrite ^/hw(.*) https://shed219-nginx.hf.space/ulhw$1 permanent;
7
 
8
  location / {
9
- proxy_pass https://cloudphoneh5.buy.139.com/;
10
- proxy_set_header referer https://cloudphoneh5.buy.139.com/;
11
- proxy_set_header Origin https://cloudphoneh5.buy.139.com;
12
- proxy_set_header :authority: cloudphoneh5.buy.139.com;
13
- add_header X-Frame-Options SAMEORIGIN always;
14
- proxy_set_header Host cloudphoneh5.buy.139.com;
15
- proxy_set_header X-Real-IP $remote_addr;
16
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
17
- proxy_set_header REMOTE-HOST $remote_addr;
18
- proxy_set_header Upgrade $http_upgrade;
19
- proxy_http_version 1.1;
20
- # proxy_hide_header Upgrade;
21
-
22
- add_header X-Cache $upstream_cache_status;
23
- #Set Nginx Cache
24
-
25
- proxy_set_header Accept-Encoding "";
26
- sub_filter "/hw/cloudphone/" "/ulhw/cloudphone/";
27
- sub_filter_once off;
28
- set $static_fileA5bezwgr 0;
29
- if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
30
- {
31
- set $static_fileA5bezwgr 1;
32
- expires 1m;
33
- }
34
- if ( $static_fileA5bezwgr = 0 )
35
- {
36
- add_header Cache-Control no-cache;
37
- }
38
  }
39
  }
 
2
  listen 7860 default_server;
3
 
4
  server_name _;
5
+ root usr/share/nginx/html;
 
6
 
7
  location / {
8
+ try_files $uri $uri/ =404;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  }
10
  }