搭建人生重开模拟器

搭建人生重开模拟器

注:本博文小白请绕道
闲话少说,上正文。
GitHub项目地址: https://github.com/VickScarlet/lifeRestart
此处使用nginx搭建
conf.d里面新建relife.conf,添加:

server {
    listen 81;
    server_name relife;
    set $lidao_root "/usr/local/nginx/html/lifeRestart-master";
    root $lidao_root/view;
#日志什么的我懒得生成
#	access_log 
#/var/log/nginx/access_liferestart.com.log main; 
#    error_log 
#/var/log/nginx/error_liferestart.com.log error;
    location / {
    index index.html ;
    }
    location /data {
    alias $lidao_root/data;
    }
    location /lib {
    alias $lidao_root/lib;
}
    location /public {
    alias $lidao_root/public;
    }
}

访问:http://ip:81

参考&&致谢

https://www.cnblogs.com/andy996/p/15249449.html

posted @ 2021-09-15 21:03  nihinumbra  阅读(431)  评论(0编辑  收藏  举报