美文网首页
Nginx Lumen 配置参考

Nginx Lumen 配置参考

作者: muction | 来源:发表于2017-11-10 17:38 被阅读0次

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 配置参考

      本文链接:https://www.haomeiwen.com/subject/yaximxtx.html