0

I have the following configuration in Apache web server for one site in a virtual environment and I am not using virtualhost...

WSGIPythonHome /var/www/mapsite
WSGIPythonPath /var/www/mapsite/lib/python3.4/site-packages

WSGIScriptAlias /mapflat /var/www/mapsite/mapsite/wsgi.py
WSGIApplicationGroup %{GLOBAL}    
<Location "/mapflat">
Options +Indexes +FollowSymLinks +ExecCGI
Order deny,allow
Allow from all
Allow from all
AddHandler wsgi-script .py

</Location>

My question: if I were to have another site in another virtual environment in future, do I append it to WSPythonHome with : or repeat the whole thing?

user903772
  • 1,554
  • 5
  • 32
  • 55

1 Answers1

0

Hopefully,This link should be helpful for you.

Deploying multiple django apps on Apache with mod_wsgi

If it still doesn't help.Please comment. :-)


At your query regarding the executing mod_wsgi as a daemon mode-:

It is for the sake of performance. Check here

Kindly revert for more queries :-)


At your query for windows.

Thanks for asking

Daemons- They are the processes which run in the background and are not interactive. They have no controlling terminal.

They perform certain actions at predefined times or in response to certain events. In *NIX, the names of daemons end in d.

In context of windows ,Daemonss becomes services. So in context of windows,You need to install apache as a service.Detailed description is here.

Process of implementation may be slightly different but actual intent is exactly same-The optimization.

cheers :-)

Community
  • 1
  • 1
Gautam Bhalla
  • 1,170
  • 2
  • 10
  • 16
  • How about Django 1.7? – user903772 Dec 05 '14 at 07:31
  • You will need to use : to seperate the different virtualenvironment paths of python.As also specified in this django documentation.https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/modwsgi/. Please let me know if you want to know more. – Gautam Bhalla Dec 05 '14 at 07:38
  • Do I need to run as a deamon? – user903772 Dec 05 '14 at 07:41
  • It is recommended but not mandatory.Depends on your implementation and project requirements.If you are at learning stage,You should try both the ways but professionally definitely its always good to work with optimization. – Gautam Bhalla Dec 05 '14 at 17:09