1
내가 렉스와의 Nginx를 사용하여 웹 페이지를 구축하기 위해 노력하고있어 지정되지 않은,하지만 난 그것을 액세스하려고 할 때 때문에 서버 정의에 뭔가 문제가있을 수 있습니다 다음과 같은 오류 메시지가 나타납니다가상 호스트의 nginx는 : 없음 입력 파일
No input file specified.
server {
listen [::]:80;
server_name comparer.com;
root /var/www/comparer.com/web/public;
index index.php;
#site root is redirected to the app boot script
location =/{
try_files @site @site;
}
#all other locations try other files first and go to our front controller if none of them exists
location/{
try_files $uri $uri/ @site;
}
#return 404 for all php files as we do have a front controller
location ~ \.php$ {
return 404;
}
location @site {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
include fastcgi_params;
}
}
내가 다른 구성을 시도했지만 어떤 일 :
내 서버 정의는 다음과 같다.
더 안전하게하려면 공개 폴더에 내 index.php를 갖고 싶지만 Silex에서 허용할지 여부는 알 수 없습니다.
감사 알렉세이는, 잠시 후 나는 또 다른 설정 파일을 가지고 있다는 것을 발견, 그래서 잘못된 설정을 편집했다. – M0N0NE