I've successfully configured WebWare and apache to meet my virtual hosting criteria for WebKit. The examples below will prevent one vhost from seeing the other vhost's context, and will prevent all vhosts from seeing default contexts unless they are within the vhosts directory tree. At the same time, it appears (so far) that all plugins and servlets are available to each vhost. I'm using the mod_webkit module, though I've also got mod_snake installed and working on this host. I have not yet tested with sessions to ensure the different vhost client sessions remain unique. I'll do so as I get to it, but feel free to try it and let me know the results (please!)gq}. Ok. Here's how I did it - I use the Mandrake method of splitting out vhost definitions by their name ie vhosts/homey.conf contains the <VirtualHost> stuff for http://homey.mojo (my private lan test domain). I used the WebWare CVS from Saturday night (June2). Note that with this method, you'll have to set up your contexts under a specific vhost, rather than http://anyhost.on.this.ip/WebKit/ (for admin, doc, and example contexts). Note also that I set mine up for both upper case and lower case url reference: *In httpd/conf/httpd.conf: Include conf/addon-modules/WebKit.conf ***You want this (WebKit module setup) before any vhost definitions or before you Include your vhost configs! *In httpd/conf/addon-modules/WebKit.conf: LoadModule webkit_module modules/mod_webkit.so AddModule mod_webkit.c AddType text/psp .psp AddHandler psp-handler .psp *In httpd/conf/vhosts/homey.conf at the bottom of the <VirtualHost ...> definition:: <Location /WK> WKServer localhost 8086 SetHandler webkit-handler </Location> <Location /wk> WKServer localhost 8086 SetHandler webkit-handler </Location> RewriteEngine on RewriteRule ^/WK(.*) /WKhomey/WKhomey/$1 RewriteRule ^/wk(.*) /WKhomey/WKhomey/$1 </VirtualHost> **Note - Same procedure for vhosts/orvill.conf *In WebKit/Configs/Application.config under Contexts: WKhomey': '/home/virtual/homey/WKhomey', WKorvill': '/home/virtual/homey/WKorvill', A simple test: Create index.py, __init__.py, XxMain.html, XxOne.html xx1.py (xx=homey|orvill) http://homey.mojo/WK <--Works - Good! http://homey.mojo/wk <--Works - Good! http://homey.mojo/wk/HomeyOne <--Works w/WK and /wk- Good! http://homey.mojo/wk/homey1 <--Works w/WK and /wk - Good! http://homey.mojo/WKhomey <--Fails - Good! http://orvill.mojo/WKhomey <--Fails - Good! http://orvill.mojo/WKorvill <--Fails - Good! copy WebKit/Examples/* homey/WKhomey/Examples but not orvill/ http://homey.mojo/WK/Examples <--Works - Good! http://orvill.mojo/WK/Examples <--Fails - Good! Please do some tests and share any improvements. Thanks. -- fdj _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/webware-discuss
