【发布时间】:2022-01-23 13:33:32
【问题描述】:
这是我的 nginx 的 sn-p:
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri /index.html;
auth_basic "Private Property";
auth_basic_user_file /etc/nginx/.htpasswd;
}
location /schedule {
auth_basic off;
proxy_pass http://localhost:25000;
}
【问题讨论】:
-
你在 Nginx 访问日志和 Nginx 错误日志中看到了什么?
标签: reactjs nginx nginx-reverse-proxy