
前提・実現したいこと
nginxのコンテナでリバースプロキシ設定して、反映されているのを確認していますが、
nginxのコンテナのaccess.log見てみると、何も出力されていません。
また、access.logはファイルではないというような表示もされます。
ご教示のほどお願いいたします。
該当のソースコード
設定ファイルに書いてある通り、
/var/log/nginx/access.logを見ていますが、viで表示すると、何も出力されていません。
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] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/conf.d/*.conf; }
/var/log/nginx/access.logを見ていますが、viで表示すると、画面下に下記のメッセージが表示されます。
"/var/log/nginx/access.log" is not a file
ディレクトリでもないみたいです。
# cd /var/log/nginx/access.log bash: cd: /var/log/nginx/access.log: Not a directory

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/03/10 15:04
2018/03/12 07:09 編集
退会済みユーザー
2018/03/17 16:55