nginxは起動している。
/var/log/nginx/error.log を見た所
"/var/www/outputer/public/books" failed (2: No such file or directory), client: 164.70.146.42, server: _, request: "GET /books HTTP/1.1", host: "18.182.97.82" "/var/www/outputer/public/404.html" failed (2: No such file or directory), client: 164.70.146.42, server: _, request: "GET /books HTTP/1.1", host: "18.182.97.82"
というエラー。
色々考えて読み込みの権限が通ってないのかと考えています。
https://teratail.com/questions/261397
この記事が自分とそっくりなのでっすが、解決方法がなく困っております。
どなたかよろしくお願いします。
user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf; events { worker_connections 1024; } http { 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; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 4096; include /etc/nginx/mime.types; default_type application/octet-stream; # Load modular configuration files from the /etc/nginx/conf.d directory. # See http://nginx.org/en/docs/ngx_core_module.html#include # for more information. include /etc/nginx/conf.d/*.conf; server { listen 80; listen [::]:80; server_name _; root /var/www/outputer/public/; index index.php index.html index.htm; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { try_files $uri $uri/ /index.php$is_args$args; } location ~ .php$ { try_files $uri /index.php =404; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
回答1件
あなたの回答
tips
プレビュー