nginx 使用webrman配置示例

渺小的人类發表於2024-07-15
upstream webman {
    server 127.0.0.1:8787;
    keepalive 10240;
}

server {
  server_name lxd.com;
  listen 80;
  access_log off;
  root "F:/WWW/Webman/public";

  location ^~ / {
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header Host $http_host;
      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_http_version 1.1;
      proxy_set_header Connection "";
      if (!-f $request_filename){
          proxy_pass http://webman;
      }
  }
}

相關文章