I think it will help to work this out if you omit the
ProxyPass line from your apache configuration.
It appears to be provided by the mod_proxy_scgi module.
The mod_proxy_scgi module might be wonderful, but
I think it should be left out of the picture at first.

For mod_scgi with Apache2 all you need in the
configuration is the LoadModule directive and
the SCGIMount directive.  

The "qp -v" command will tell you what handlers are
listening on what ports, and that can be useful.

Another tool you might find useful here is the
qp/hub/scgi_util.py file.  It submits a little scgi request
to the port that you name and prints out the
response.


On Aug 11, 2010, at 3:31 AM, Ernesto Adorio wrote:

> Hi all,
> 
> To add further clarity or obfuscation to the discussion, when I tried
> it on my domain,
> the contents of the javascript file proto.js  is displayed if
> http://mydomain/proto  is the url but an error results if I specified
> http://mydomain/proto/.
> 
> Any ideas?? Perplexed...
> 
> Ernesto.
> 
> 
> On Wed, Aug 11, 2010 at 9:30 AM, Ernesto Adorio
> <[email protected]> wrote:
>> Thank you David and Mike,
>> 
>> I think the Apache2 server setup for QP is a legitimate area for QP 
>> questions.
>> I think I got the QP-scgi side correct now. Now I have to fix the
>> Apache again. It was working WITHOUT the  scgi entry in the config
>> dict with the server accessed as http://mydomain:8003.
>> 
>> I just wish the docs contained a working Apache2 config for the proto
>> example, so we can concentrate on writing insanely great QP
>> applications.
>> 
>> Assuming that the scgi_address field ("127.0.0.1", "3007") was added
>> to the config dict,
>> 
>> How do I complete or correct the following skeleton for a virtual host
>> which should be accessed as
>> 
>>                    http://mydomain/proto?
>> or as           http://proto.mydomain?
>> or even as http://mydomain:8003?
>> 
>> 
>> LoadModule scgi_module  /usr/lib/apache2/modules/mod_scgi.so # Ok.
>> 
>> <VirtualHost *:80>
>>    AddDefaultCharset utf-8
>>    ServerName www.mydomain
>>    ServerAlias mydomain
>>   DocumentRoot /var/www/
>>    #ErrorDocument 500 /500.html
>>    #ErrorDocument 404 /404.html
>> 
>>    # handle all requests throug SCGI
>>    # SCGIHandler On         # not allowed here !
>>    # SCGIServer 127.0.0.1:3007 # not allowed here!
>> 
>>    SCGIMount /dynamic 127.0.0.1:3007    # no error here.
>>    ProxyPass /proto  scgi://127.0.0.1:8003/  # no error here.
>> </VirtualHost>
>> 
>> But I can't get the browser to display the scgi app.
>> 
>> Again, TIA.
>> -Ernie.
>> 
> _______________________________________________
> QP mailing list
> [email protected]
> http://mail.mems-exchange.org/mailman/listinfo/qp

_______________________________________________
QP mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/qp

Reply via email to