当前位置:首页 > 服务器技术 > nginx

laravel在nginx配置

server {
    listen 8000;
    server_name www.phpcto.com;
    root /var/www/laravel/public;
    index index.html index.php;

    location / {
        try_files $uri$uri/ /index.php$is_args$query_string;
    }

    location ~ .php$ {
        try_files $uri /index.php =404;
        fastcgi_split_path_info ^(.+.php)(/.+)$;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('
  • ').text(i)); }; $numbering.fadeIn(1700); }); });

    以上就介绍了laravel 在nginx配置,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。


    【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!