rm /etc/nginx/sites-enabled/*
/etc/nginx/sites-available/<mydomain>
:server {
listen 80;
server_name <mydomain>;
location / {
proxy_pass http://localhost:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
ln -s /etc/nginx/sites-available/<mydomain> /etc/nginx/sites-enabled/
/etc/init.d/nginx restart