Nginx Proxy Configuration

To configure Nginx as proxy, use following configuration

If you need to serve images using static files, add following block to nginx config

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

Leave a Reply

Your email address will not be published. Required fields are marked *