|
|
@@ -149,23 +149,16 @@ http {
|
|
|
|
|
|
# another virtual host using mix of IP-, name-, and port-based configuration
|
|
|
#
|
|
|
- server {
|
|
|
- # 标准HTTPS监听端口
|
|
|
- listen 443 ssl;
|
|
|
- server_name api.ygtxfj.com;
|
|
|
-
|
|
|
- # SSL证书配置(建议使用绝对路径)
|
|
|
- ssl_certificate /etc/nginx/ssl/scs1739178580156_api.ygtxfj.com_server.crt;
|
|
|
- ssl_certificate_key /etc/nginx/ssl/scs1739178580156_api.ygtxfj.com_server.key;
|
|
|
+ #server {
|
|
|
+ # listen 8000;
|
|
|
+ # listen somename:8080;
|
|
|
+ # server_name somename alias another.alias;
|
|
|
|
|
|
- location = /fLxiFxSceH.txt {
|
|
|
- proxy_pass http://localhost:8080/static/fLxiFxSceH.txt;
|
|
|
- expires 30d;
|
|
|
- # 推荐增加的代理头信息
|
|
|
- proxy_set_header Host $host;
|
|
|
- proxy_set_header X-Real-IP $remote_addr;
|
|
|
- }
|
|
|
- }
|
|
|
+ # location / {
|
|
|
+ # root html;
|
|
|
+ # index index.html index.htm;
|
|
|
+ # }
|
|
|
+ #}
|
|
|
|
|
|
|
|
|
# HTTPS server
|