咻咻ing 2020-02-02
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/;
}
}
运算符用于执行程序代码运算,会针对一个以上操作数项目来进行运算。以上实例中 7、5 和 12 是操作数。关系运算符用于计算结果是否为 true 或者 false。逻辑运算符用于测定变量或值之间的逻辑。