directive is not allowed here1 nginx: [emerg] "user" directive is not allowed here in /etc/nginx/conf.d/nginx.conf:1 nginx 이미지를 베이스로 가져오게 되면 docker 안쪽의 /etc/nginx/ 경로에 기본적으로 nginx.conf 파일이 존재한다 (docker run -it server_nginx sh ) 이걸 에디터로 열어서 확인해보면, user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local].. 2022. 10. 11. 이전 1 다음