awsの無料AMIにて、nginx + laravel5.1の環境を構築しようとしたところ、
public内にあるindex.php(/home/ec2-user/www/public/index.php)が表示されず困っております。
*nginxの初期画面が表示されることは確認しております。
以下nginx.confファイルの中身です。
何卒宜しくお願いします。
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
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 2048; include /etc/nginx/mime.types; default_type application/octet-stream; index index.php index.html; server { listen 80 default_server; server_name ec2-54-213-217-82.us-west-2.compute.amazonaws.com; root /home/ec2-user/www/public; include /etc/nginx/default.d/*.conf; location / { try_files $uri /index.php?query_string; } location ~ \.php$ { fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /home/ec2-user/www/public$fastcgi_script_name; include fastcgi_params; }
server_tokens off;
}
}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/03/08 07:09
2016/03/09 02:01 編集
2016/03/09 02:37
2016/03/09 03:33