On Mon, 2002-08-19 at 10:47, r g wrote:
> I hope that someone has the time to help me with some details about
Webware Contexts. I am sure
> that this is just a case of my dense brain. I have read and reread
the docs. Also read most of the
> context related materials on the Twiki site. OK, here goes.
>
> First, I have Webware installed and running using OneShot.cgi,
WebKit.cgi, as well as mod_Python
> adapters. So, nothing is broken. I just do not have my head around
contexts and the default context.
>
> My Webware application resides in its own application directory
created by the Webware setup utility.
> Apache is serving up 2 web sites, they are both virtual. At this time
I am only concerned about the
> first web site. One issue at a time.
>
> www.website1.com -- doc root is -- /pub/httpd/website1
> website1 -- default context --
/pub/httpd/website1/MyContext
>
> Apache location /WK is defined for website1 and points to the default
context of MyContext. This is
> also defined in the Application.conf (?) for this website.
>
> http://www.website1.com/wk properly accesses my website using the
mod_Python adapter.
>
> On to the questions now...
>
> What is the purpose of the "context"? They are not used with the cgi
adapters, right?
> Why would I have other contexts defined in the config? How would they
be used or referenced?
> Does any of the context functionality address the needs of serving 2
web sites? Or does
> each web site run off of its own instance of the AppServer?
>
> Thanks.rdg,
Yes context allows one server to service multiple websites. If you copy
the "lines" in your httpd / apache.conf, and Application.conf line that
you have questions about. I can give you a better answer in relation to
specific items.
As to how to use them ( with mod_webkit, sorry don't know about
mod_python ) ... here's a sample:
[Application.conf]
'Contexts': {
#'Admin': '%(WebKitPath)s/Admin',
#'Examples': '%(WebKitPath)s/Examples',
#'Docs': '%(WebKitPath)s/Docs',
#'Testing': '%(WebKitPath)s/Testing',
#'MyContext': 'MyContext',
'rdg': '/home/rdg/WebWareWork/rdg',
'rdg2': '/home/rdg/WebWareWork/rdg2',
'default': 'rdg'
},
[apache/http.conf]
RewriteEngine On
RewriteRule ^/wk/(.*) /$1 [R]
RewriteRule ^/rdg(.*) /wk/rdg/$1 [L,PT]
RewriteRule ^/rdg2(.*) /wk/rdg2/$1 [L,PT]
<Location /wk>
WKServer localhost 8086
SetHandler webkit-handler
order deny,allow
deny from all
allow from localhost .localdomain
allow from 192.168.10.
allow from 10.0.0.
Options Indexes FollowSymLinks
</Location>
Ok, If you have any other questions just let us know. Hope this helps!
Ray
PS : I "got" most of this from using the RewriteRule's wiki page, and a
heck of a lot of experimenting. I only say it as a warning ... your
results may vary, and this is meant for a Linux / *nix machine running
mod_webkit.
..
> rdg
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss