0
아마존 EC2에 nginx와 php7을 설치했습니다. 로컬 IP를 통해 확인하면 작동합니다. 그러나 그것은 탄성 IP를 통해 사용할 수 없습니다. 누군가가 도와 줄 수 있습니까?아마존 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 설치 –