搭建人生重开模拟器
注:本博文小白请绕道
闲话少说,上正文。
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
来看看本人搭建的吧:http://rl.sillage.wang