John-
You've described a case I hadn't considered. Send me your patch and
I'll clean it up, if necessary, and apply it.
BTW, as you surmise in your other post, mod_webkit would be a more
efficient apache adapter, most likely. The build instuctions are very
simple. Give it a try. I'll be curious to see if you have the same
problem with mod_webkit, as I honestly can't remember if I addressed it.
Jay
On 24 Jul 2001 16:33:30 -0700, John Reese wrote:
> I have "index.psp" listed as a DirectoryIndex under Apache, which
> means that if I have a file "/x/index.psp" under the web root, and the
> user attempts to fetch "/x/", Apache will send the request to the
> handler for "/x/index.psp." This is ModPythonAdapter::pspHandler or
> whatever. The request is mustered and sent to the application server
> with "WK_ABSOLUTE" set in the request's environment.
>
> The application server then calls Application.serverSidePathForRequest.
> If WK_ABSOLUTE was _not_ set, this function proceeds to check various
> specified directory files (index.* and Main.*); when it finds one, it
> uses the path of that file and returns it. If you use WK_ABSOLUTE,
> however, there is no checking for directory files.
>
> Thus, in my case, what happens is: the user requests "/x/"; Apache
> recognizes this as PSP and forwards it to Webware; Webware fails to
> take the final step in determining the PSP filename and returns a
> broken redirect url to "/x/" (redirects have to be absolute URIs). This
> seems like the wrong behavior.
>
> I've patched my own copy of Webware to search for index.psp and
> Main.psp if the request was absolute and refers to a directory, but my
> patch is a little messy, and I figured it should really be addressed
> by someone more familiar with the project.
>
> If this has already been fixed in an rc or in CVS, so much the better.
>
>
>
> Relevant Apache settings:
>
> DirectoryIndex index index.psp
> AddHandler python-program .psp
> PythonHandler ModPythonAdapter::pspHandler
>
>
>
> Obligatory:
>
> Apache 1.3.20
> Debian 2.2
> Linux 2.2.16
> mod_python 2.7.2
> Webware 0.5
>
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/webware-discuss
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss