我有一个Nginx服务,它被配置为在我的Windows 10上自动启动;但是,今天早上,该服务不会启动。错误日志显示: nginx:[alert] could not open error log file: CreateFile() "C:\someForlderName\build\distribution\.\nginx/logs/error.log" failed (3: The system cannot find the path specified)
查看上面错误日志中的路径,我的本地系统上没有/ log /文件夹,所以看起来Nginx没有创建该文件夹的适当权限?
我使用带有nginx映像的docker来运行我的站点。
我有以下配置:
码头--复合液
version: '7.1'
services:
#
# Conflicts with any local HTTP server.
# If you have a local Nginx, you must stop it.
#
nginx:
image: nginx:1.12.0-alpine
container_name: nginx
ports:
- "80:80"
volumes:
- .
在一台香港服务器上安装了nginx并且配置一个域名转发到大陆腾讯云服务器上的IP+端口的一个网站上,刚配置完通过域名是可以访问的,然后过了一个晚上就提示502 Bad Gateway,但是通过直接输入大陆服务器的IP+端口的方式访问还是能够正常访问的,想问下是不是腾讯云做了限制不能通过nginx来做域名转发啊