python - Writing a proper Apache virtual host script, for a Django app using WSGI -


i have here virtual host script django app i'll deploy real world. right seems working fine; however, i'd know if there's wrong script, or things should improved.

things note :

  • the wsgi.py file 1 django automatically produces. it's in same directory app's source code.
  • the static files served apache /srv/www/foobar/static/ directory

    <virtualhost *:80>      servername foobar.com     serveralias www.foobar.com     serveradmin contact@foobar.com      wsgidaemonprocess foobar.com processes=2 threads=20 inactivity-timeout=600 maximum-requests=10000     wsgiprocessgroup foobar.com     wsgiscriptalias / /home/some_user/foobar_django_app/foobar/wsgi.py      documentroot "/srv/www/foobar/"     alias "/static/" "/srv/www/foobar/static/"  </virtualhost> 

consider setting:

wsgiapplicationgroup %{global} wsgirestrictembedded on 

watch:

read:


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -