文件管理路径伪静态: location /admin { #alias "D:/wwwroot/demo.xuxiaokun.com/functions"; proxy_pass https://demo.xuxiaokun.com/functions/admin.php; 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-NginX-Proxy true; #try_files $uri $uri/ /index.php$is_args$args; #index index.html index.htm index.php; #autoindex on; }