| Home | Trees | Index | Help |
|
|---|
| Package aquarium :: Package wsadaptor :: Module GlassAdaptor :: Class GlassAdaptor |
|
WebServerAdaptor --+
|
GlassAdaptor
This subclass of WebServerAdaptor is for the Glass Web server.
The following urlscheme modules can be used with this Web server adaptor: ScriptName.
The following attributes are used:
The following private variables are used:
Hiding Glass behind Apache (i.e. using Apache as a reverse proxy) is actually fairly simple:
Get Glass working by itself.
Configure Apache to act as a reverse proxy. At the very simplest, do something like:
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">
...
#
# Redirect everything to Glass. Match any uri and forward it on to
# localhost at port 8000.
#
RewriteEngine On
RewriteRule ^(.*)$ http://localhost:8000/$1 [P]
</Directory>
| Method Summary | |
|---|---|
Receive the mainGlobals from __main__. | |
Return CGI-like environmental variables. | |
Instantiate some cgi.FieldStorage and return the instance. | |
Save these until writeHeaders gets called. | |
Output a string. | |
Extend the base class in order to output the response code. | |
| Method Details |
|---|
__init__(self,
mainGlobals)
|
getCgiEnv(self)Return CGI-like environmental variables. |
getForm(self)Instantiate some cgi.FieldStorage and return the instance. |
setResponseCode(self, code, msg='')Save these until writeHeaders gets called. |
write(self, s)Output a string. |
writeHeaders(self, headersList)Extend the base class in order to output the response code. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jan 1 16:34:19 2007 | http://epydoc.sf.net |