./conf/cors/<site-name> Configuration Assuming that site-name is webapplicationconsultant.com and I want to enable credentials for varunbatra.com along it itself" /> ./conf/cors/<site-name> Configuration Assuming that site-name is webapplicationconsultant.com and I want to enable credentials for varunbatra.com along it itself" />

Nginx

Enable CORS with Credentials in Nginx

You must have noticed that when enable cors with “*”, it doesn’t allow credential to pass. Solution to this is pretty simply, you just need to list all of your domains in configuration. My approach is to have a separate file for each domain. Directory Structure: Configuration Assuming that site-name is webapplicationconsultant.com and I want […]

Passing Real IP in WordPress behind Proxy or in Docker

If you have followed the tutorial on How to run WordPress Blog behind Nginx Secure (https) Proxy, you might be under a situation that WordPress is showing all ips as proxy ips. In case of Docker it must be like 172.X.X.X otherwise, it is the ip of your server.  If this is a problem? You might […]

Nginx Proxy Caching for Scalability.

Since our servers are spread across multiple locations, we had a lot of issues regarding speed. If it is served from the different location server, which is not in the local network, there is a latency of about 500ms to 750ms, This seems a lot and is unavoidable if you are running a maintenance on […]

Scroll to top