Laravel的Nginx配置

来源:互联网 发布:matlab输出数组到txt 编辑:程序博客网 时间:2024/05/18 02:42

转自:http://type.so/linux/nginx-and-laravel.html

server {    listen 80;    server_name tool.lu;    root /var/www/html/tool.lu/public;    index index.html index.php;    location / {        try_files $uri $uri/ /index.php$is_args$query_string;    }    location ~ \.php$ {        try_files $uri =404;        fastcgi_pass 127.0.0.1:9000;        fastcgi_index index.php;        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;        include fastcgi_params;    }}


0 0
原创粉丝点击