Fork me on GitHub
pikachu's Blog

djJyYXk=(b64)伪装 + 宝塔 + typecho

前言

  • 换个动态博客 typecho
  • 为了省钱,在同一个 vps 上搭建了 djJyYXk=typecho
  • 由于之前摸索搭建的方法,中间走了很多曲折路,由于申请太多 ssl 证书,导致域名暂时被 Let's Encrypt 拉入黑名单,所以目前没法更换到 typecho ,先记录一下方法吧
  • 为了省事,直接用了宝塔,先安装宝塔
1
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh
  • 然后用宝塔安装 typecho ,这里不要申请 ssl 证书
  • 再安装 djJyYXk= 伪装
1
bash <(curl -sL https://raw.githubusercontent.com/hijkpw/scripts/master/centos_install_v2ray2.sh)
  • 最后修改 nginx , 路径为 /www/server/panel/vhost/nginx/blog.hitcxy.com.conf, 把 blog.hitcxy.com 换成相对应的主机名即可, ssl 证书用 v2ray 申请的
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
server {
listen 80;
server_name blog.hitcxy.com;
return 301 https://$server_name:443$request_uri;
}

server {
listen 443 ssl http2;
server_name blog.hitcxy.com;
charset utf-8;

# ssl配置
ssl_protocols TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_ecdh_curve secp384r1;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_session_tickets off;
ssl_certificate /etc/letsencrypt/live/blog.hitcxy.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/blog.hitcxy.com/privkey.pem;

#PHP-INFO-START PHP引用配置,可以注释或修改
include enable-php-70.conf;

#REWRITE-START URL重写规则引用,修改后将导致面板设置的伪静态规则失效
include /www/server/panel/vhost/rewrite/blog.hitcxy.com.conf;

root /www/wwwroot/blog.hitcxy.com;
location / {
index index.php index.html index.htm default.php default.htm default.html;
# proxy_pass http://www.ddxsku.com/;
}

#禁止访问的文件或目录
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)
{
return 404;
}

location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
error_log off;
access_log /dev/null;
}

location ~ .*\.(js|css)?$
{
expires 12h;
error_log off;
access_log /dev/null;
}
access_log /www/wwwlogs/blog.hitcxy.com.log;
error_log /www/wwwlogs/blog.hitcxy.com.error.log;

location /pikachu_ufo {
proxy_redirect off;
proxy_pass http://127.0.0.1:29001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
# Show real IP in v2ray access.log
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
---------------- The End ----------------
谢谢大爷~

Author:pikachu
Link:https://hitcxy.com/2020/Typecho-V2ray/
Contact:hitcxy@hotmail.com
本文基于 知识共享署名-相同方式共享 4.0 国际许可协议发布
转载请注明出处,谢谢!