I want to create a custom nginx instance to reverse proxy with my gunicorn. I am currently using the shared nginx instance but am unsure how to proceed. I have my custom nginx app installed, not sure how I am supposed to tied them together. Any help would be appreciated. asked 26 Jul '15, 06:23 solaris989 |
So i figured it out on my own. Used this website to setup my nginx properly: https://jamie.curle.io/posts/webfaction-installing-custom-nginx/ Then I setup a proxy_pass:
answered 26 Jul '15, 18:15 solaris989 |
Can you clarify a bit? Specifically, are you intending to place a custom nginx instance between the shared nginx instance and gunicorn (creating three layers instead of two?) Or, do you want to create a custom Nginx instance listening on a high-numbered port open in the firewall, which proxies to your application (two layers)?
I want 2 layers only, my custom nginx listening with my gunicorn behind it
the reason i want this is because i moved over from apache but i still want all my custom rewrite rules