[Seaside] apache proxying / rewriting
Damien Pollet
damien.pollet at gmail.com
Thu Oct 30 14:56:34 UTC 2008
Hi, I'd like to overlay seaside apps over the root of an apache vhost,
ie http://host/foo.html is served as is if it's an actual file in the
DocumentRoot, but http://host/pier gets reverse-proxied to a squeak
image.
Looking in previous threads, it looks like this should work:
ProxyPreserveHost On
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ http://localhost:8080/seaside/$1 [P,L]
But since seaside generates links with seaside, accessing
http://host/pier works but then all the links generated by seaside are
wrong.
NB with RewriteRule ^/(.*)$ http://localhost:8080/$1 [P,L] and
accessing http://host/seaside/pier, it *does* work. But I'm curious
because in some mails it seemed like the seaside prefix can be
eliminated… how ?
Thanks
--
Damien Pollet
type less, do more [ | ] http://people.untyped.org/damien.pollet
More information about the seaside
mailing list