You are missing the line:

  LoadModule wsgi_module modules/mod_wsgi.so

(modified as appropriate for your installation).

You don't say how you installed mod_wsgi, from source code or binary OS package.

If from source you need to add it by hand. If from a binary OS package
you generally use the OS supplied command to enable the Apache module.

How did you install mod_wsgi itself?

Graham

On 29 April 2011 12:15, tan3 <[email protected]> wrote:
> Hi,
>
>
> I installed apache2 and mod-wsgi in ubuntu. I even entered the config
> details for WSGI in defualt of apache2
>
>        Alias /media/ /home/nagaraj/ghar/templates/media/
>
>        <Directory /home/nagaraj/ghar/templates/media>
>        Order deny,allow
>        Allow from all
>        </Directory>
>
>        WSGIScriptAlias / /home/nagaraj/ghar/apache/django.wsgi
>
>        <Directory /home/nagaraj/ghar/apache>
>        Order allow,deny
>        Allow from all
>        </Directory>
>
> Which here is my Django project related path.
>
> But i got an error saying
> Syntax error on line 50 of /etc/apache2/sites-enabled/000-default:
> Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a
> module not included in the server configuration
> Action 'configtest' failed.
> The Apache error log may have more information.
>   ...fail!
>
> Can anyone tell, what is wrong here? Please
>
> --
> 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.

Reply via email to