clasense4 blog

I’ve googling about hot to deploy django on VPS, but mostly i found is just some advice, not tuts. i’ve been confused all of time, in my head just thinking “how to deploy django on VPS with custom port“, yes i have a VPS access (Public IP), but no DNS server, nor domain. All I want is to access mypublicip:someport ex: 10.234.78.253:8090

After Googling couple times, I’ve found some interesting article, http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/ i’ve doing that on my local machine, and everything goes well. but How on Server?

On Server need some setting on your wsgi files and virtual hosts files, these are the setting:

  • wsgi files (example: /PATH/TO/DJANGO/PROJECT/django.wsgi)
  • apache virtual hosts files (/etc/apache2/sites-available/WSGI_PROJECT)
  • restart your apache server with this command

try to open 10.234.78.253:8090 and your project is accesible on your server.

Reading Materials:

  1. Virtual Hosts Doc http://httpd.apache.org/docs/2.0/vhosts/examples.html
  2. Django Project Documentation files https://docs.djangoproject.com/en/1.4/howto/deployment/wsgi/modwsgi/

View original post

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s