ryanmab / CensorDodge

Censor Dodge Web Proxy
Creative Commons Attribution Share Alike 4.0 International
63 stars 67 forks source link

Opening requested webpages as html #21

Open Comiclyy opened 1 year ago

Comiclyy commented 1 year ago

Every time i open a webpage with the proxy it is opening with the html of the censordodge homepage instead of the acctual page.

ryanmab commented 1 year ago

Hi @Comicly69! Could you give me some examples of where this is happening?

Thanks, Ryan

Comiclyy commented 1 year ago

i make a proxy and go to google.com in the proxy it just opens the html of the censordodge homepage

bytebone commented 1 year ago

Hey @ryanmab,

please excuse me opening up this old thread again, but I am affected by the same issue and am a bit clueless how to attack it.

For context, I'm using the Dockerfile and docker-compose. First cloned the repo, adjusted the compose file to include my reverse-proxy network by Nginx, and started the container. Apache complained about the "ServerName" not being set, but I have not figured out how I could do that. I've set my reverse proxy to forward to the container on port 80, and can open the landing page without issues.

Entering any URL into the query field redirects me to a subpage with the encrypted domain as the cdURL-value. But the website does not load, instead it seems to show the raw HTML of the dashboard. This happens with URL encryption both on and off, and for any address I entered. The apache log shows the regular GET requests without further issues.

Since you mentioned PHP error logs in a different issue thread, could you maybe advise me how to enable these logs in a docker container? I'd love to get this figured out.