客营宝-系统部署教程

提前准备

部署本系统,我们需要提前准备的东西有:

  1. 先购买好域名以及服务器
  2. 将域名解析到服务器【查看域名解析教程】
  3. 用户中心下载网页端源码

系统部署

1.上传解压源码

2.运行目录 /public

关闭放跨站攻击

图片[1]-客营宝-系统部署教程-客营宝

3.部署SSL证书

4.配置伪静态

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

location ~ \.php$ {
    try_files $uri =404;
    fastcgi_pass unix:/tmp/php-cgi-74.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param REQUEST_URI $request_uri;
    include fastcgi_params;
}

location ~ /\. {
    deny all;
}

location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|webp|bmp|woff|woff2|ttf|eot)$ {
    expires 30d;
    access_log off;
}
© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容