Report this

What is the reason for this report?

Setup Multiple Django Websites on Django One Click Install Image VPS

Posted on July 20, 2014

I have a Django One Click Install Image VPS on Ubuntu 14.04 and have a site running which has minimal traffic. I need to host another independent Django website on it. As I am new to webserver configuration. Could Someone please guide me through the NGINX and Gunicorn Upstart configuration to host multiple sites. Consider my Sites are: www.mysite1.com www.mysite2.com I have already referred the questions:

https://www.digitalocean.com/community/questions/how-can-i-host-multiple-websites-on-a-droplet-using-nginx

But it does not mention the NINX and Gunicorn configuration to serve 2 independent websites on the same server.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The one-click install for Ubuntu 16.04 is set-up a little differently. I do not see a gunicorn.conf file in etc/init directory and the app_server section of the settings file points to a gunicorn.socket file.

I’m lost. How do I setup multiple django sites using the Ubuntu 16 one-click install option?

This comment has been deleted

Hi After setting up the new site. When I try to restart nginx server. I get following error

  • Reloading nginx configuration nginx [failed]

Is there any thing else to modify ?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.