You have to limit few things in your nginx.conf: buffer size, body size and timeouts.
We generated new ssl key. This time it’s from Gigaone. I added it to site’s config file and after restart of nginx I have a message: “Starting nginx: Enter PEM pass phrase:”. Everything is fine, however I don’t want to fill my password after each restart of nginx. Time to do something with it.
I already described how to configure WordPress on nginx + lighttpd + FastCGI + php (via spawn-fcgi), as well as how to configure php-fpm on server with nginx. Now… I will try to describe alternative way to serve php scripts on the machine with python apps (django) and nginx installed – via installed apache.
My plan is to have one server for my python and php applications. I already wrote about configuring nginx + apache for django applications. As well as configuring WordPress on nginx + lighttpd + FastCGI + php (via spawn-fcgi). Today I will to present how to serve my php applications via php-fpm.
I’m building production environment on my VPS for all of my django applications. What I need is: Django framework, Apache (with mod_wsgi) and nginx. I will do it on ubuntu 9.04.
You shouldn’t give an access to your ‘.svn’ directory. This flaw exposes all file names in your svn module and can also be used to download the source code of the scripts (PHP, JSP, etc…) hosted on the remote server.
Sometimes we need to handle lots of subdomains (e.g. we want to have URLs like someones_login.ourdomain.com). So, lets configure nginx for this kind of situation.
It is always a good idea to run your python projects via paster + nginx. Some time ago I wrote about building environment for pylons projects on ubuntu, so that shouldn’t be a problem. Now… let create some kind of script to start, stop and restart our application.
Sure, you can always install Apache. However… sometimes you can’t… for example: there could be some other web server installed on your port 80. There could be nginx for your python projects already installed (like in my case).
Hello, I'm Karol Zielinski, internet evangelist, an entrepreneur, project manager and a web developer from Gdynia, Poland. I like creative design, good advertisement, social media and all kind of stuff around the web.