一、按常规教程安装vmess+ws+tls 一键安装脚本,测试成功。
二、安装goyoubbs:
wget https://github.com/ego008/goyoubbs/releases/download/current/goyoubbs-linux-amd64.zip
wget https://github.com/ego008/goyoubbs/releases/download/current/site.zip
unzip goyoubbs-linux-amd64.zip
unzip site.zip
./goyoubbs
运行安装命令
./goyoubbs
出现下面提示说明安装成功:
2017/12/06 16:24:42 MainDomain: http://127.0.0.1:8082
2017/12/06 16:24:42 youdb Connect to mydata.db
2017/12/06 16:24:42 Web server Listen to http://127.0.0.1:8082
三、配置nginx
server {
listen 80;
server_name iduyao.cn;
charset utf-8;
# access_log /var/log/youbbs/access.log; 这个不要,测试写入的话不成功
# error_log /var/log/youbbs/error.log; 这个不要,测试写入的话不成功
client_max_body_size 100M;
client_body_buffer_size 100M;
location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8082;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/html;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
此环境下启动和重启nginx的命令:
/etc/init.d/nginx start 启动nginx
/etc/init.d/nginx restart 重启nginx