Wednesday, February 25, 2015

Re: django deployment in a virtual machine.

El 25/02/15 12:19, dk escribió:
thanks guys, I installed Apache and I am setting everything,  does my project really need to be in /etc/www/

No. It's even not recommended.
or I can put anywhere in the computer? just making sure the apache.conf point to that address?



Basic configuration

Once you've got mod_wsgi installed and activated, edit your Apache server's httpd.conf file and add the following. If you are using a version of Apache older than 2.4, replace Require all granted with Allow from all and also add the line Order deny,allow above it.

WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py  WSGIPythonPath /path/to/mysite.com    <Directory /path/to/mysite.com/mysite>  <Files wsgi.py>  Require all granted  </Files>  </Directory>    
Cheers,
Felix.

No comments:

Post a Comment