-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Apache as a reverse proxy #308
Comments
I fixed my problem using:
I hope that this will help someone 👍 |
Thanks for sharing. Your original issue was caused by Apache that normalizes URLs (e.g. The ideal solution is to disable URL normalization altogether, but I haven't checked how to do that in Apache. For those who come across this bug and are looking for the solution for nginx, see https://github.com/Rob--W/cors-anywhere/issues/143#issuecomment-452468128 |
For anyone landing here looking for a solution. I found one that worked for me here: https://stackoverflow.com/questions/67047224/apache-proxy-server-removing-double-slashes There is a https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypass
|
If this is useful for someone Here is a config for nginx
|
Hello 👋
First of all, thank you for maintaining this awesome project, it's very useful!
I'm trying to setup
cors-anywhere
with Apache and Cloudflare. The following configuration works, but it seems like it can't parse the URL and I'm redirected to the help page every time.I tried to remove
https://
(to usehttps://cors-anywhere.androz2091.fr/discord.com
) instead of (https://cors-anywhere.androz2091.fr/https://discord.com
) and it worked (but I need https for some calls).I read the other issues, and I understand what the problem is, Apache uses URL normalization and the https in the URL breaks everything but I don't know how to setup Apache properly, as there are only fragments of code in #201). Does someone know how I could get it to work?
Thank you
The text was updated successfully, but these errors were encountered: