now i want to use the nginx as web server, but the the server display error: 500 Internal Server Error.
I found only the default controller and default aciton is correct running.
anybody know how to fix?
My nginx config file is as same as the official's wiki :
location / {
root /path/to/solar/docroot/;
index index.php;
# This matches the requested file to a .css extension so it
# won't be processed as php even if the file is missing.
if ($request_filename ~ ^.*\.css$) {
break;
}
# Matches any file/directory/link that doesn't exist (-e),
# prepends index.php to the query string (assuming your
# index.php is at the root) so that the location below
# matches and is handed off to the fast CGI handler.
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
# Matches a query string where index.php is at the root
# (change if your solar system has a non empty $URIBASE)
# and hands off those requests to the php fast CGI handler.
location ~ ^/index\.php.*$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /path/to/solar/docroot$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}