Welcome! Log In Create A New Profile

Advanced

Yii Framework + NGINX

Posted by muhfiasbin 
Yii Framework + NGINX
February 07, 2012 05:50AM
Saya sedang coba membuat konfigurasi nginx untuk framework Yii, seperti berikut:

# Konfigurasi Pendaftaran #

location /pendaftaran {
access_log /home/muhfi/logs/ppdsreg-access.log main;
access_log /usr/local/nginx/logs/access.log main;
error_log /home/muhfi/logs/ppdsreg-error.log debug;
rewrite ^/(.*)$ http://ppds.usu.ac.id/$1/ permanent;
}

location /pendaftaran/ {
index index.php index.html;
access_log /home/muhfi/logs/ppdsreg-access.log main;
access_log /usr/local/nginx/logs/access.log main;
error_log /home/muhfi/logs/ppdsreg-error.log debug;

error_page 404 /index.php;

if ( -f $request_filename)
{
expires max;
break;
}

if ( !-e $request_filename)
{
rewrite ^/pendaftaran/(.*)$ /pendaftaran/index.php/$1 last;
}


}


}


location /pendaftaran/index.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param PATH_INFO $document_uri;
fastcgi_param REQUEST_METHOD $request_method;
}

Penggalan konfigurasi diatas adalah konfigurasi yang saya coba, tapi belum berhasil dan keluar tulisan "No input file specified" pada browser.

/var/www/app/public_html <-- ROOT
/var/www/app/yii_framework

aplikasi yii berada di subdir "pendaftaran" (/var/www/app/public_html/pendaftaran/)

Adakah yang pernah mengalami hal yang sama? Mohon berbagi dan bantuannya
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready