Nginx Proxy Configuration

To configure Nginx as proxy, use following configuration

Rule to handle SSL verification

If you are proxying traffic to an application server, you may need Nginx to handle request for SSL verification. In that cause, add following to server block, above location / entry.


Nginx Rails Origin header didn’t match request.base_url