|
@@ -37,7 +37,7 @@ http {
|
|
|
listen 8080;
|
|
|
server_name localhost;
|
|
|
|
|
|
- root /home/ubuntu/FrameworkBenchmarks/php-yii2;
|
|
|
+ root /home/ubuntu/FrameworkBenchmarks/php-yii2/app;
|
|
|
index index.php;
|
|
|
|
|
|
location / {
|
|
@@ -50,14 +50,12 @@ http {
|
|
|
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
|
|
fastcgi_pass fastcgi_backend;
|
|
|
fastcgi_keep_conn on;
|
|
|
- set $fsn /$yii_bootstrap;
|
|
|
+ set $fsn /index.php;
|
|
|
if (-f $document_root$fastcgi_script_name){
|
|
|
set $fsn $fastcgi_script_name;
|
|
|
}
|
|
|
|
|
|
- include fastcgi_params;
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fsn;
|
|
|
-
|
|
|
#PATH_INFO and PATH_TRANSLATED can be omitted, but RFC 3875 specifies them for CGI
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
fastcgi_param PATH_TRANSLATED $document_root$fsn;
|