You can use regular servlets mixed in with your static pages as long as you change your default webware context to be the same as your main apache context, as well as use an AddType for .py and an Addhandler bakc to your WKServer location,  that's what I have done and it everythig works without any problems
Jose



-------- Original Message --------
Subject: RE: [Webware-discuss] still getting 404's
From: "Geoffrey Talvola" <[EMAIL PROTECTED]>
Date: Tue, July 01, 2003 5:59 am
To: "'Ian'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]

Ian wrote:
> At 01:17 AM 7/1/2003, you wrote:
>> Ian wrote:
>>> here are the various lines in my httpd.conf file relating to
>>> webware: LoadModule webkit_module modules/mod_webkit.so
>>> AddType txt/psp .psp
>>> AddHandler psp-handler .psp
>>
>> Shouldn't you have something like this in there too?
>>
>> <Location /webware>
>>   WKServer localhost 8086
>>   SetHandler webkit-handler
>> </Location>
>>
>> Nick
>
> I'm pretty sure that in one of the readme files it said that was only
> needed under certain conditions. And in any case, since the appserver
> IS getting the psp requests, i dont think thats the issue, is it?
> Whenever i request a psp page, apache does pass the request to the
> app server because i see it scroll past in the console, and the 404
> error is the error message from webware, not apache's 404 error
> message.

In my httpd.conf the only Webware-related lines I have are:

LoadModule webkit_module modules/mod_webkit.dll
<Location /WebKit>
WKServer localhost 8086
SetHandler webkit-handler
</Location>

I don't have the psp-related lines that you have.

I suggest you try adding these lines to your httpd.conf and see if it helps.

It's important to realize that there are 2 different ways to use PSP.  The
most common way, and the way that I use it, is to have a "context" directory
that is entirely separate from the directory containing your static pages to
be served by Apache.  You use the Location directive with WKServer and
SetHandler as I show above, and you also must edit the Contexts setting in
your Application.config file to include your context directory.  The
advantage of this method is that you can use a combination of PSP's and
Python Servlets.

The other way to use PSP is to simply place PSP pages into the same
directories where you are storing static files to be served by Apache.
That's what the AddType and AddHandler lines are for.  You may still need to
include the WKServer and SetHandler directives even if you're using this
method -- I'm not sure.  The disadvantage of this method is that you can't
use regular Python Servlets -- you can only use PSPs.  (Also, I believe that
there may be a few features of Webware that don't quite work properly using
this method, such as forwarding from one PSP to another.)

- Geoff


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to