On Saturday, July 20, 2002, at 10:50 PM, rdg wrote:
> If I set my browser to "/localhost/wk" I get the Webware html error=20
> page with the following traceback
> that seems to be looking for the default context (why?) --
I'm sure others can chime in with more complete answers, but as I=20
understand it you have set up Webware under the /wk location, meaning=20
that all your urls will take the form of /localhost/wk/yourContext
/localhost/MyContext is not even being served by the AppServer, instead=20=
it goes through httpd
/localhost/wk does not work for the reason you thought. Think of=20
default as the root context for all the /wk requests. If you don't=20
include a context with /localhost/wk, then it doesn't know what page to=20=
display.
You got the right idea by setting "MyContext" and "wk" to the same path,=20=
but /wk is a server location, not a Webware context. Just change=20
"'wk':=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
'/pub/httpd/tj-test/MyContext" to =20
"'default':=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
'/pub/httpd/tj-test/MyContext
Now your context will display under /localhost/wk, but it sounds like=20
you would really like to display it under /localhost. You have several=20=
options. You can switch the WebKit location to simply <Location />,=20
then all urls will be /localhost/yourContext. This will only work=20
correctly under very specific conditions. Check the wiki, it has a=20
section on how to do this. The other popular option is to use=20
mod_rewrite under Apache. Again, the wiki covers this well, so your=20
first stop should be to check that out.
http://webware.colorstudy.net/twiki/bin/view/Webware/ModRewriteRecipes
Hope that helps.
|