【从零开始配置VPS】09:替换网站页面中的关键词

Last updated on March 19, 2024 pm

1
2
3
4
5
6
<IfModule mod_substitute.c>
<Location />
AddOutputFilterByType SUBSTITUTE text/html
Substitute s/jscdn.limour.top/jscdn.limour.top/ni
</Location>
</IfModule>
1
2
3
4
5
6
7
8
9
10
cd ~/app/WordPress
nano jscdn.conf
sudo docker cp ./jscdn.conf \
wordpress-wordpress-1:/etc/apache2/conf-enabled/jscdn.conf

sudo docker exec -it wordpress-wordpress-1 \
cp /etc/apache2/mods-available/substitute.load \
/etc/apache2/mods-enabled/substitute.load

sudo docker-compose restart

【从零开始配置VPS】09:替换网站页面中的关键词
https://hexo.limour.top/ti-huan-wang-zhan-ye-mian-zhong-de-guan-jian-ci
Author
Limour
Posted on
January 30, 2023
Updated on
March 19, 2024
Licensed under