logのテキストファイルをwebから見る設定したのですが、以下の設定では表示はされますが、改行がされず見にくいです。
listen 8002; server_name usla3.sekaimon.com; client_max_body_size 100m; root /var/www/usla3/storage; index index.php index.html index.htm; include /etc/nginx/mime.types; default_type application/octet-stream; #access_log /var/log/nginx/access_8002_log.log main; add_header 'Content-Type' 'text/html'; autoindex on; autoindex_exact_size on; autoindex_localtime on; auth_basic "Restricted"; # 認証時に表示されるメッセージ auth_basic_user_file /etc/nginx/conf.d/.htpasswd; # .htpasswdファイルのパス ssl on; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_certificate /etc/nginx/conf.d/ssl.pem; ssl_certificate_key /etc/nginx/conf.d/ssl.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m;
改行されるようにどういう風に設定すればいいでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/18 02:22