2010/1/27 contactimtiaz <[email protected]>:
> Also, we traced the input headers to the wsgi script and one of the
> headers was 'GATEWAY_INTERFACE': 'CGI/1.1'. Would it produce a CGI
> header if it wasn't? Please advise.

Not important. The WSGI environ dictionary just so happens to be
populated using same routine in Apache that creates the environ for
CGI scripts and so it passes through that variable indicating CGI/1.1
even though WSGI. Strictly speaking, it is still true in as much as
the variables and values they contain are dictated by what CGI
specification says.

Now, what is the URL you are accessing, and as I asked before, can you
supply small example of the WSGI script file so can see how you are
coding it.

Also please supply the lines of the Apache error log from around where
you are getting the premature end of script headers message.

I need to see what the preceding and following error messages are and
determine whether there are any times or whether daemon process is
crashing.

Make sure you indicate what platform you are using and what version of mod_wsgi.

As pointed out by someone else, the AddHandler for .wsgi is redundant
in your case. Read:

  http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines

Graham

> Thanks
> Imtiaz
>
> On Jan 26, 1:37 pm, contactimtiaz <[email protected]> wrote:
>> Thank you. We'll go ahead and make the change. Is there anything else
>> that stands out in the configuration that suggests wsgi may be running
>> as cgi?
>>
>> -Imtiaz
>>
>> On Jan 26, 1:06 pm, Mark Sapiro <[email protected]> wrote:
>>
>> > On Jan 26, 8:43 am, contactimtiaz <[email protected]> wrote:> Here's 
>> > the apache config relevant to wsgi:
>>
>> > > LoadModule wsgi_module modules/mod_wsgi.so
>>
>> > > <Directory /docs/content/scripts>
>> > >         Addhandler cgi-script .py
>> > >         AddHandler wsgi-script .wsgi
>> > >         Options +ExecCGI
>> > > </Directory>
>>
>> > [...]
>>
>> > > WSGIScriptAlias /scripts/targeted_content_test /docs/content/scripts/
>> > > targeted_content_test.wsgi
>> > > WSGIScriptAlias /scripts/targeted_content /docs/content/scripts/
>> > > targeted_content.wsgi
>> > > WSGIScriptAlias /scripts/refresh /docs/content/scripts/refresh.wsgi
>>
>> > AddHandler xxx .wsgi and WSGIScriptAlias are intended to be
>> > alternative ways of invoking WSGI scripts. I think you should not have
>> > both for the same directory.
>
> --
> 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