server {
listen 80;
server_name 10.66.80.158;
location /static/app/ {
root /opt/nodejs/lib/node_modules/stf/res/app/;
proxy_pass http://127.0.0.1:7100;
access_log on;
expires 30d;
}
location /static/app/data/ {
root /opt/nodejs/lib/node_modules/stf/res/data/;
proxy_pass http://127.0.0.1:7100;
access_log on;
expires 30d;
}
location /static/app/status/ {
root /opt/nodejs/lib/node_modules/stf/res/common/status/;
proxy_pass http://127.0.0.1:7100;
access_log on;
expires 30d;
}
location /static/app/build/entry/ {
root /opt/nodejs/lib/node_modules/stf/res/build/entry/;
proxy_pass http://127.0.0.1:7100;
access_log on;
expires 30d;
}
location /static/app/build/ {
root /opt/nodejs/lib/node_modules/stf/res/build/;
proxy_pass http://127.0.0.1:7100;
access_log on;
expires 30d;
}
location /static/app/browsers/ {
root /opt/nodejs/lib/node_modules/stf/node_modules/stf-browser-db/dist/;
proxy_pass http://127.0.0.1:7100;
access_log on;
expires 30d;
}
location /static/app/appstores/ {
root /opt/nodejs/lib/node_modules/stf/node_modules/stf-appstore-db/dist/;
proxy_pass http://127.0.0.1:7100;
access_log on;
expires 30d;
}
location /static/app/devices/ {
root /opt/nodejs/lib/node_modules/stf/node_modules/stf-device-db/dist/;
proxy_pass http://127.0.0.1:7100;
access_log on;
expires 30d;
}
location /static/app/custom/ {
root /opt/nodejs/lib/node_modules/stf/static/;
proxy_pass http://127.0.0.1:7100;
access_log on;
expires 30d;
}
location /static/logo/ {
root /opt/nodejs/lib/node_modules/stf/res/common/logo/;
proxy_pass http://127.0.0.1:7100;
access_log on;
expires 30d;
}
location /res/common/logo/exports/favicon.ico {
root /opt/nodejs/lib/node_modules/stf/res/common/logo/exports/favicon.ico;
proxy_pass http://127.0.0.1:7100;
access_log on;
expires 30d;
}
location /robots.txt {
root /var/www/link_check/link_check/static/;
access_log on;
log_not_found off;
}
location /favicon.ico {
root /var/www/link_check/link_check/static/;
access_log off;
log_not_found off;
}
location / {
proxy_pass http://127.0.0.1:7100/;
proxy_redirect off;
proxy_set_header x-Real-IP $remote_addr;
proxy_set_header x-Forwarded-For $proxy_add_x_forwarded_for;
}
}
STF-nginx配置
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 大家好,我是IT修真院成都分院第7期的JAVA学员龚剑飞,一枚正直纯洁善良的java程序员。 今天给大家分享一下,...
- 1.背景介绍 2.知识剖析 3.常见问题 4.解决方案 5.编码实战 6.扩展思考 7.参考文献 8.更多讨论 1...
- Nginx的配置文件nginx.conf配置详解如下: user nginx nginx ; Nginx用户及组:...
- 前言 Nginx ("engine x") 是一个高性能的HTTP和反向代理服务器,我对Nginx使用有两三年了,...
- codeblocks是一个跨平台的C/C++的IDE,页面简单好用,在写C/C++工程的时候其才采用自有的工程文件...