我正在尝试通过以下方式为Angular2应用服务器:
http://my_ip/arc-client
索引被下载但是对于其他文件,浏览器会尝试:
http://my_ip/(*。js | .css)
而不是:
http://my_ip/arc-client/( .js | * .css)
我知道我做错了什么,但我无法弄清楚是什么。 这是我的Nginx配置:
server {
access_log /var/log/nginx/access.log;
listen 80 default_server;
server_name _;
location /arc-client/dev/ {
alias /home/MrMan/arc-client/www/;
index index.html;
}
location /arc-overseer-client/ {
alias /home/MrMan/arc-overseer-client/dist/;
index index.html;
}