0
我已经安装nginx和php7到亚马逊EC2。 它通过本地IP检查它的工作原理。但它不通过弹性IP。 有人可以帮我吗?如何在amazon ec2上运行php7 nginx? (弹性IP?)
server {
listen 80 default_server;
root /var/www/html;
index index.php index.html;
server_name 52.43.19.61;
location/{
try_files $uri $uri/ /index.php?q=$uri&$args;
}
location ~ \.php$ {
try_files $uri = 404;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
谢谢你的所有问题。我不是专业人士来检查这一切。我使用所有标准设置ec2。刚刚安装了nginx和php7 –