Browse Source

Update nginx.conf for new index.php location

Natchanon Tatsaneepong 11 years ago
parent
commit
3bbfc1b741
1 changed files with 2 additions and 4 deletions
  1. 2 4
      php-yii2/deploy/nginx.conf

+ 2 - 4
php-yii2/deploy/nginx.conf

@@ -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;