我在Azure Kubernetes中部署了一个Angular SPA应用程序。我试图通过Ingress控制器访问应用程序。入口指向xxx.xxx.com,应用程序部署在路径"/“中。因此,当我访问应用程序时,应用程序加载正常。但是,当我尝试在浏览器中直接输入index.html以外的任何其他页面时(例如: eee.com/homepage),我得到404Not Found。 以下是dockerfile的内容 # base image
FROM nginx:1.16.0-alpine
# copy artifact build from the 'build environm
我使用Nginx与许多域。其中一些域具有自定义配置。我在Nginx配置中将这些文件包含在服务器块中。
例如:
server {
... some configurations things here...
include /var/somewhere/custom.conf;
etc.. etc..
}
Nginx的配置文件位于:/etc/nginx
为了把所有的东西都放在一个地方,而不是把我的自定义配置文件放在一个地方,我想把我的自定义配置文件放在/etc/nginx/Some目录中。
我能否在/etc/ Nginx 中创建一个子目录,而不引起Nginx本身的任何问
我对nginx的位置配置有一些问题,下面是我的配置文件:
user dev-ci;
location ~* /img/screenshots/ {
alias /dev/shm/screenshots/;
}
# other location with root and proxing to apache currently working propertly
我的浏览器请愿书是:
http://URL/img/screenshots/4336.jpg?id=85574
我的nginx日志是:
2012/04/23 08:49:40 [error] 13916#0: *2148