Re:Ask HN: Django Deploy Recommendations
by jordanmessina on Saturday October 23, 2010 @05:23PM
(#1824395)
It's quite easy. Install nginx, update the config file, generally found in '/etc/nginx/sites-enabled/'
There are plenty of good nginx config examples out there, but to use it as a reverse proxy you want to do something like:
location / {
proxy_pass http://127.0.0.1:8080/;
}
You also need to change your ports.conf file for apache to make it run on a different port if you want nginx running on port 80.
There are plenty of good nginx config examples out there, but to use it as a reverse proxy you want to do something like: location / { proxy_pass http://127.0.0.1:8080/; }
You also need to change your ports.conf file for apache to make it run on a different port if you want nginx running on port 80.