I'm curious... I'm looking to have a really efficient setup for my slice for a client. I'm not an expert with servers and so am looking for good solid resources to help me set this up... It's been recommended to me that using FastCGI for PHP, Green Unicorn (gunicorn) for Django and Nginx for media is a good combination to have PHP and Django running on the same slice/server. This is needed due to have a main Django website and admin, but also to have a PHP forum on there too.
Could anyone push me to some useful resources that would help me set this up on my slice? Or at least, any views or comments on this particular setup?
I think one solution could be using a combination of PHP as apache module or throught FastCGI and use mod_proxy apache module to do some reverse proxy to access your administration app running with gunicorn
You can have a setup like :
- Front HTTP Server apache on port 80 : www.host.com:80
- Backend HTTP Server gunicorn on other port : other.host.com:8080 or localhost:8080 publicly accessed with mod_proxy and url like www.host.com/admin/
- Media HTTP Server : media.host.com, if it has to be on same system you can use mod_proxy and run NGINX server on another TCP port.
Note that you should not be able to get most performance with the NGINX as media server hidden behind apache with mod_proxy.
This part of setup relies upon the possibility of having more than one public IP adress on this slice.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki