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

    1
    2
    3
    4
    5
    6

    <IfModule mod_substitute.c>
      <Location />
        AddOutputFilterByType SUBSTITUTE text/html
        Substitute s/cdn.jsdelivr.net/jscdn.limour.top/ni
      </Location>
    </IfModule>

- cd ~/app/WordPress

- nano jscdn.conf

    1
    2
    3
    4
    5
    6
    7

    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

从零开始配置VPS
【从零开始配置VPS】09：替换网站页面中的关键词
https://occdn.limour.top/2538.html
Author
Limour
Posted on
January 30, 2023
Licensed under
Warp 转 SOCKS5 Previous
Rclone备份 VPS 数据到 onedrive Next

#### Search

Keyword