使用Nginx设置Angular App时为什么会得到404

时间:2019-05-08 23:37:03

标签: angular nginx http-status-code-404

我正在尝试使用Nginx设置一个角度应用程序。这是我的nginx conf文件:

server {
listen              4300;
server_name         localhost;


location / {
    root /root/sultana/thumbs;
    try_files $uri no-img.png;
}
location /dashboard {
    root /srv/www/htdocs;
    index index.html index.htm;
}
}

第一个位置仅提供图像并按预期工作。该请求由HAProxy转发。导航到/ dashboardLogin时,我得到404。

0 个答案:

没有答案