On 26 January 2011 04:48, octopusgrabbus <[email protected]> wrote: > I am working my way through various apache error log messages trying > to move my application from mod_python to mod_wsgi. Currently > WSGIScriptAlias can't be loaded, and I am trying to understand what > corrections need to be made for it to load.
Do you mean that Apache will not even recognise the WSGIScriptAlias directive? You are going to have to be more specific about the error message you see in the browser and in the Apache error log files. You are also possibly missing some configuration. I really recommend you watch: http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Conference_Presentations That does start out though on the assumption that you have actually enabled the mod_wsgi module in Apache first though. You can check whether mod_wsgi is loaded by using '-M' option to Apache on command line: http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Apache_Modules_Loaded Graham > Here is my apache configuration for Django and mod_wsgi > > # Virtual hosts > # > > Listen 9090 > <VirtualHost _default_:9090> > WSGIScriptAlias / /home/amr/django/django.wsgi > Alias /media /home/amr/django/amr/media > </VirtualHost> > > Here is django.wsgi > > import os > import sys > path = '/home/amr/django/amr' > if path not in sys.path: > sys.path.append(path) > > os.environ['DJANGO_SETTINGS_MODULE'] = 'amr.settings' > > import django.core.handlers.wsgi > application = django.core.handlers.wsgi.WSGIHandler() > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
