(home | about | stats)

Seaside FAQ: Serve Static Files With Apache

You may use mod_proxy.

1. Make sure that mod_proxy is included into your apache installation for apache 1.3.x check lines in apache config similar to:

LoadModule proxy_module       libexec/libproxy.so
AddModule mod_proxy.c

2. Sample Apache config assuming you have Seaside running on localhost:9999 and your app is on http://localhost:9999/seaside/test

<VirtualHost X.Y.Z.A:80>
ServerName www.test.com

#Static files are placed here and /home/seaside/static/test.gif is
# available via http://www.test.com/test.gif
DocumentRoot /home/seaside/static
  <Directory /home/seaside/static>
    Options Indexes
  </Directory>

UseCanonicalName off
NoCache *
ProxyRequests On
# http://www.test.com/seaside/test is our app now!!!
ProxyPass    /seaside/test     http://localhost:9999/seaside/test

# This should work too
# ProxyPass    /app     http://localhost:9999/seaside/test
</VirtualHost>

-Courtesy of Dmitry Dorofeev

motionobj.com. This is a pwyky site.