Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Dillon Jones <mrlocomojo@ya...> - 2001-06-04 07:23:10
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:
***You want this (WebKit module setup) before any vhost definitions or before
you Include your vhost configs!
LoadModule webkit_module modules/mod_webkit.so
AddType text/psp .psp
AddHandler psp-handler .psp
*In httpd/conf/vhosts/homey.conf at the bottom of the <VirtualHost ...> definition::
WKServer localhost 8086
WKServer localhost 8086
RewriteRule ^/WK(.*) /WKhomey/WKhomey/$1
RewriteRule ^/wk(.*) /WKhomey/WKhomey/$1
**Note - Same procedure for vhosts/orvill.conf
*In WebKit/Configs/Application.config under Contexts:
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.