首页 > 其他 > 详细

【nginx】配置

时间:2020-02-02 23:02:49      阅读:81      评论:0      收藏:0      [点我收藏+]

server {
listen 80;
server_name ××××.com;
access_log /×××/×××/nginx/log/access.log;
error_log /×××/×××/nginx/log/error.log;

location / {
proxy_pass http://127.0.0.1:8000;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /static {
alias /×××/×××/×××/×××/static/;
expires 30d;
}
location /neo4j {
proxy_pass http://127.0.0.1:7474/browser/;
}
}

 

【nginx】配置

原文:https://www.cnblogs.com/colipso/p/12254175.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!