2023-01-30-【从零开始配置VPS】09:替换网站页面中的关键词.md 748 B


title: 【从零开始配置VPS】09:替换网站页面中的关键词 urlname: ti-huan-wang-zhan-ye-mian-zhong-de-guan-jian-ci date: 2023-01-30 22:56:26 index_img: https://api.limour.top/randomImg?d=2023-01-30 22:56:26

tags: 从零开始配置VPS

<IfModule mod_substitute.c>
  <Location />
    AddOutputFilterByType SUBSTITUTE text/html
    Substitute s/jscdn.limour.top/jscdn.limour.top/ni
  </Location>
</IfModule>
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