<Directory "/xx/xx/xx/">
Deny from all
</Directory>
</VirtualHost>
或者再狠一点在最后加上全部禁止
#禁止所有非法域名
<VirtualHost *:80>
ServerName 服务器ip
ServerAlias *
<Location />
Order Allow,Deny
Deny from all
</Location>
</VirtualHost>
Building wheels for collected packages: shadowsocks Building wheel for shadowsocks (setup.py) … done Created wheel for shadowsocks: filename=shadowsocks-2.8.2-py3-none-any.whl size=51658 sha256=451f745570ca87d3250df8d160a20ec76fca56f3f367d5e46587e5dda1f70623 Stored in directory: /home/xxx/.cache/pip/wheels/40/f7/14/208a189571d8a2279abb774182453d0d9356bdaf0299236350 Successfully built shadowsocks Installing collected packages: shadowsocks WARNING: The scripts sslocal and ssserver are installed in ‘/home/xxx/.local/bin’ which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use –no-warn-script-location. Successfully installed shadowsocks-2.8.2
#yum update gd Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Loading mirror speeds from cached hostfile
base: mirrors.163.com
epel: mirror.sjtu.edu.cn
extras: mirrors.163.com
remi-safe: mirrors.tuna.tsinghua.edu.cn
updates: mirrors.aliyun.com
Resolving Dependencies
–> Running transaction check
—> Package gd.x86_64 0:2.0.35-26.el7 will be updated
—> Package gd.x86_64 0:2.0.35-27.el7_9 will be an update
–> Finished Dependency Resolution
Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator nginx, Installer nginx
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for sub.xxx.com
Waiting for verification…
Cleaning up challenges
new certificate deployed with reload of nginx server; fullchain is
/etc/letsencrypt/live/sub.xxx.com/fullchain.pem
Processing /etc/letsencrypt/renewal/xxx.com.conf
Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator nginx, Installer nginx
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for xxx.com
Waiting for verification…
Cleaning up challenges
new certificate deployed with reload of nginx server; fullchain is
/etc/letsencrypt/live/xxx.com/fullchain.pem
Congratulations, all renewals succeeded. The following certs have been renewed:
/etc/letsencrypt/live/sub.xxx.com/fullchain.pem (success)
/etc/letsencrypt/live/xxx.com/fullchain.pem (success)