durusmail: quixote-users: SCGI + Quixote, Location / ?
SCGI + Quixote, Location / ?
2005-08-10
2005-08-10
2005-08-10
2005-08-10
2005-08-10
2005-08-10
2005-08-10
2005-08-10
2005-08-10
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-12
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
2005-08-11
RELEASED: scgi-1.6
2005-08-11
2005-08-11
SCGI + Quixote, Location / ?
mso@oz.net
2005-08-10
Michael Best wrote:
> Trying to run the demo application with http://www.example.com/ as the
> URL.
>
>    
>      SCGIServer localhost:4000
>      SCGIHandler On
>      Order allow,deny
>      Allow from all
>    
>
> When you go to http://www.example.com/ you get:
>
> Traceback (most recent call last):
>    File "/usr/lib/python2.3/site-packages/quixote/publish.py", line 275,
> in process_request
>      output = self.try_publish(request)
>    File "/usr/lib/python2.3/site-packages/quixote/publish.py", line 250,
> in try_publish
>      assert path[:1] == '/'
> AssertionError
>
> Form:
>
> Cookies:
>
> Environment:
>
>
> This forces you go to http://www.example.com//  (adding an additional /
> to the end of your URL)

I'll just plug my longstanding request that Quixote redirect path '' (the
mount point itself) to '/'.  That's no more magical than adding a slash
redirect to a directory, which Quixote and all other webservers do. It's
the only reasonable interpretation of '' ("Duh, they must be trying to get
to the home page.")  Otherwise everybody has to put a redirect in their
Apache config.

FWIW, my configuration is like this (SCGI 1.4).  I only mount on
subdirectories and I don't use virtual hosts:

RewriteRule ^/rl$  /rl/  [R=permanent]

        Order Allow,deny
        Allow from all
        SCGIServer localhost:3002
        SCGIHandler On



--
-- Mike Orr 

reply