专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > youbbs

v2ray与goyoubbs并存共同部署

发布时间: 文章来源:www.iduyao.cn 采编人员:毒药  
前提:纯净Ubuntu 16.04+ 环境
一、按常规教程安装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

友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
   2116阅读
目前尚无回复
登录 后发表评论