Re: SCGI + Quixote, Location / ?

[email protected]
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
Michael Best wrote:
> Trying to run the demo application with http://www.example.com/ as the
> URL.
>
>    <Location />
>      SCGIServer localhost:4000
>      SCGIHandler On
>      Order allow,deny
>      Allow from all
>    </Location>
>
> 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]
<Location /rl>
        Order Allow,deny
        Allow from all
        SCGIServer localhost:3002
        SCGIHandler On
</Location>


-- 
-- Mike Orr <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.