Graham,

You are definitely right. All of my virtualhosts were ignored. I have
changed one of my virtualhosts and the example application is working
great. Also a user on #wsgi (freenode) told me to keep the wsgi files
out of the documentroot so I have already done that.

The next step is to find out how to make web2py work with mod_wsgi.

Thank you for the help. :)

On Dec 18, 5:42 am, Graham Dumpleton <[email protected]>
wrote:
> 2009/12/18 Mengu <[email protected]>:
>
> > Graham,
>
> > I do not see any error when I point my browser tohttp://wsgi.localhost/wsgi.
> > All i see is the content of the wsgi folder.
>
> Don't put your WSGI script files under your DocumentRoot for a start.
>
> The issue then probably is that you have got multiple VirtualHost
> definitions and you haven't specified somewhere in Apache
> configuration:
>
>   NameVirtualHost *:80
>
> Or, you haven't enabled the new virtual host by ensuring it is
> symlinked into enabled sites directory.
>
> In other words, your virtual host is being completely ignored. The
> reason you see the contents of the directory where WSGI script file is
> located is because you stuck it in DocumentRoot, ie., /var/www, in
> effectively same place as URL mapped. Thus, because virtual host is
> ignored, you are just seeing static file directory list of same.
>
> So, first off move the WSGI script file outside of DocumentRoot and
> second worked out why your virtual host isn't enabled, ie., what is in
> sites-enabled, or whatever Ubuntu calls it.
>
> Graham
>
> > I have thought maybe mod_python had something to do so I had disabled
> > it but still the same.
>
> > I am on Ubuntu 9.04 using Python 2.6 and installed mod_wsgi-2.8.
>
> > After changing LogLevel to info, this is the error.log:
> >http://paste.pocoo.org/show/157769/orhttp://pastebin.com/m5007cb9e.
>
> > Thank you.
>
> > Mengu
>
> > On Dec 18, 4:53 am, Graham Dumpleton <[email protected]>
> > wrote:
> >> What do you get if it doesn't render? An Apache error page? If so what
> >> error message? Or do you get an empty page?
>
> >> Also, what error message may be in Apache error log?
>
> >> Can you also override value of LogLevel in Apache configuration so it is:
>
> >>   LogLevel info
>
> >> and restart Apache.
>
> >> Look in Apache error logs for any indication that Apache is loading 
> >> mod_wsgi.
>
> >> Make a request again and post both mod_wsgi startup messages plus what
> >> occurs in Apache error log when request made. Look for any other
> >> strange messages as well, such as 'Segmentation Fault'.
>
> >> Please also indicate what operating system you are using and what
> >> version of Python.
>
> > --
>
> > 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 
> > athttp://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