'Does establishing a proxy pass to CloudFront via NGINX preserve the benefits of CloudFront
I have the following configuration on NGINX:
location ~ ^/app/ {
proxy_pass_request_headers on;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass https://my-cloudfront-distribution.cloudfront.net;
}
Is this sufficient for enabling all the cache features from cloudfront? Meaning, that, wouldn't CloudFront think that all the requests come from the NGINX server?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
