[Seaside] ProxyPass and the P Option

Lukas Renggli renggli at gmail.com
Mon Nov 5 18:52:19 UTC 2007


> Server Hostname to www.mysite.com
>
> Server Path to ??

All these 'Server ...' settings tell Seaside how to generate absolute
URLs. These settings are not used for the lookup, just to generate
URLs in HTTP responses and the associated HTML contents (anchors,
forms). There is absolutely no magic behind it.

EXAMPLE:

If you want to run your application 'appname' on
'http://www.mysite.com/somewhere/?_s=123123' use the following setup.
Replace any part of the configuration with YOUR settings. Comments are
enclosed in square brakets and a number.

SEASIDE:

Server Protocol: http [1]
Server Host: www.mysite.com [1]
Server Port: 80 [1]
Server Path: /somewhere/

APACHE:

RewriteRule ^/somewhere/(.*)$ http://localhost:8080/seaside/appname/$1 [P,L] [2]

[1] Leave blank, if ProxyPreserveHost On
[2] Unfortunately Cincom decided to go with a different setup. You
probably need to replace /seaside/appname/ with something like
/seaside/go/appname/ in VisualWorks. Check with your Cincom for
details.

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list