I'm trying to setup a reverse proxy for DuckDuckGo on Apache(ddg.example.com). Now I can visit DuckDuckGo home page and search something through my Apache server. But I found that the images in the search page are not shown. I tried to setup a reverse proxy for external-content.duckduckgo.com(The domain of the images) and use Substitute command to replace it by ddgec.example.com(My image reverse proxy URL). But it didn't work. What should I do? Here are some contents of my configuration file(ddg.example.com):
ProxyVia On
SSLProxyEngine On
RequestHeader set Front-End-Https "On"
RequestHeader set Accept-Encoding ""
Header unset Content-Security-Policy
ProxyPass "/" "https://duckduckgo.com/"
ProxyPassReverse "/" "https://duckduckgo.com/"
ProxyPassReverseCookieDomain "duckduckgo.com" "ddg.example.com"
AddOutputFilterByType SUBSTITUTE text/html text/css text/javascript application/javascript
SetEnv filter-errordocs
Substitute "s|external-content.duckduckgo.com|ddgec.example.com|ni"
Substitute "s|duckduckgo.com|ddg.example.com|ni"
Sorry for my broken English.