login community faq

I know that WebFaction uses nginx as frontend server for static files.

I'm trying to deploy a Django project with gunicorn and nginx configured as reverse proxy. I wonder if I have to install a local copy of nginx with a local .conf file, or if it's possible to use the main nginx server with the same local .conf file, and how.

asked Sep 29 '12 at 19:06

Guandalino's gravatar image

Guandalino
3719


You can use the shared frontend Nginx server - just install a custom app (listening on port) through the control panel, then configure your Gunicorn server to listen to the port assigned to this new app, and assign that app to your site in the control panel. Nginx will forward requests for that site to the specified port.

answered Sep 30 '12 at 02:11

todork's gravatar image

todork
10964

Where do my custom configuration file for the shared nginx go? In ~/etc ?

(Sep 30 '12 at 10:51) Guandalino Guandalino's gravatar image
1

You will only be able to do any customizing via .htaccess files. You can not change the configuration of the system Nginx. For that you would need to install your own instance of Nginx.

(Sep 30 '12 at 11:24) bmeyer71 ♦♦ bmeyer71's gravatar image

Thanks, just a final question. I already have gunicorn controlled by supervisord. Do I have to put nginx under it, too?

(Sep 30 '12 at 12:13) Guandalino Guandalino's gravatar image
1

If you are meaning the system wide install, you can not control that. If anything needs to be done we would have to do it. For your own install, you can monitor/control it however is best for you.

(Sep 30 '12 at 12:17) bmeyer71 ♦♦ bmeyer71's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×129
×74
×19
×18

Asked: Sep 29 '12 at 19:06

Seen: 544 times

Last updated: Sep 30 '12 at 12:17

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited