Score:0

How to replace external-content.duckduckgo.com by ddg.example.com in Apache reverse proxy?

cf flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.