The config for nginx here:
user nginx;
worker_processes 4;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
include /usr/local/nginx/conf/virtual/*.conf;
}
the virtual.conf in virtual file:
server {
listen 80 default_server;
root /www/laravel/public;
index index.html index.htm index.php;
server_name laravel.rexchen.cn;
charset utf-8;
location / {
try_files \$uri \$uri/ /index.php?\$query_string;
}
# Note this will work with "hack" files as well as php files!
location ~ \.(hh|php)$ {
fastcgi_keep_conn on;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# Deny .htaccess file access
location ~ /\.ht {
deny all;
}
}
the chrome report that 500 error:enter image description here
so how fix this
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2bGHWZp
via IFTTT
Aucun commentaire:
Enregistrer un commentaire