我正在尝试使用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。