Home >Backend Development >PHP Tutorial >laravel in nginx configuration

laravel in nginx configuration

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-29 08:59:241137browse

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

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

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

The above introduces the configuration of laravel in nginx, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn