|
|
|
|
|
by irahul
4834 days ago
|
|
When you used php, your application server(mod_php) and web server(apache) looked the same to you. With python wsgi applications(most of the web frameworks are wsgi compliant), you generally need a separate application server and a web server which talks with the application server. Application server can directly serve the application and static files, but it isn't advisable. So, you run an nginx on port 80 https://gist.github.com/rahulkmr/5232161 and proxy_pass to your application server running on some other port(8080 in the example). You have a lot of choices when it comes to application servers. What you use depends on your use case. > but I don't know how to configure nginx on my VPS so I can have multiple python webapps (my simple apps, django apps, flask etc.). Look up sites-available and sites-enabled for nginx. |
|