python - multiple django projects on one application in webfaction -
i using webfaction server , new server side. had 3 django projects 3 domains , 1 application in webfaction. way can run 3 django projects 3 different domains in 1 application. had changed httpd.conf placing virtual host in it. did not work. in advance
this had been tried
keepalive off setenvif x-forwarded-ssl on https=1 serverlimit 1 startservers 1 maxrequestworkers 5 minsparethreads 1 maxsparethreads 3 threadsperchild 5 #wsgidaemonprocess application processes=2 threads=12 python-path=/home/device_name/webapps/application:/home/device_name/webapps/application/project_name:/home/device_name/webapps/application/lib/python2.7 #wsgiprocessgroup application #wsgirestrictembedded on #wsgilazyinitialization on #wsgiscriptalias / /home/device_name/webapps/application/project_name/project_name/wsgi.py # virtual hosts setup namevirtualhost * <virtualhost *> servername application.com wsgidaemonprocess application processes=5 python-path=/home/device_name/webapps/application:/home/device_name/webapps/application/project_name:/home/device_name/webapps/application/lib/python2.7 threads=1 wsgiprocessgroup application wsgirestrictembedded on wsgilazyinitialization on wsgiscriptalias / /home/device_name/webapps/application/project_name/project_name/wsgi.py </virtualhost> <virtualhost *> servername dreamhomeconsultancy.in wsgidaemonprocess application_name_www processes=5 python-path=/home/device_name/webapps/application:/home/device_name/webapps/application/civilengg:/home/device_name/webapps/application/lib/python2.7 threads=1 wsgiprocessgroup civilengg wsgirestrictembedded on wsgilazyinitialization on wsgiscriptalias / /home/device_name/webapps/application/civilengg/civilengg/wsgi.py </virtualhost>
sorry typing on mobile cannot elaborate on much.
i have found bookmark of usefull article , helped me webfaction setup running:
http://michal.karzynski.pl/blog/2013/09/14/django-in-virtualenv-on-webfactions-apache-with-mod-wsgi/
i hope helps. if need more let me know actual setup.
good ouck!
Comments
Post a Comment