server {
listen 80;
server_name 站点域名;
root /your/webman/public;
location / {
proxy_pass http://127.0.0.1:8787; # 转发规则
index index.php index.html error/index.html;
autoindex off;
proxy_set_header Host $proxy_host; # 修改转发请求头
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}