搭建人生重开模拟器

注:本博文小白请绕道
闲话少说,上正文。
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

相关文章:

  • 2021-10-03
  • 2021-04-29
  • 2021-05-22
  • 2021-11-22
  • 2021-05-04
  • 2021-12-20
  • 2021-09-27
猜你喜欢
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2023-01-20
  • 2022-12-23
  • 2021-04-05
  • 2021-04-25
相关资源
相似解决方案