Nginx Lumen 配置参考

server {

listen 80 default_server;

root /home/mengdeliang/web/crm/api/service/public;

index index.php index.html index.htm;

server_name crmapi.huox.tv.com;

location / {

try_files $uri $uri/ /index.php?$query_string;

}

location ~ \.php$ {

try_files $uri /index.php =404;

fastcgi_split_path_info ^(.+\.php)(/.+)$;

fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;

fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

include fastcgi_params;

}

}

文章转载:参考 https://laravel-china.org/topics/2914/step-by-step-to-teach-you-to-deploy-your-laravel-applications-and-programs-to-the-server

你可能感兴趣的:(Nginx Lumen 配置参考)