反代理如何实现多个文本替换呢!求技术大哥!
<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot "/www/wwwroot/www.xxx.cn"
ServerName 19c0d777.www.xxx.cn
ServerAlias www.xxx.cn
errorDocument 404 /404.html
ErrorLog "/www/wwwlogs/www.xxx.cn-error_log"
CustomLog "/www/wwwlogs/www.xxx.cn-access_log" combined
#PROXY-START
<IfModule mod_proxy.c>
ProxyRequests Off
SSLProxyEngine on
ProxyPass / http://1.com//
ProxyPassReverse / http://1.com//
RequestHeader unset Accept-Encoding
ExtFilterDefine fixtext mode=output intype=text/html cmd="/bin/sed 's,http://1.com/,http://www.2.cn/,g'" 此处是替换第一道文本,
← 此处替换第二道文本该如何写呢!求技术哥!
SetOutputFilter fixtext
</IfModule>
#PROXY-END
#PHP
<FilesMatch \.php[ DISCUZ_CODE_18 ]gt;
SetHandler "proxy:unix:/tmp/php-cgi-71.sock|fcgi://localhost"
</FilesMatch>
#PATH
<Directory "/www/wwwroot/www.xxx.cn">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Require all granted
DirectoryIndex index.php index.html index.htm default.php default.html default.htm
</Directory>
</VirtualHost>
页:
[1]