On Wed, Nov 12, 2008 at 9:42 PM, David Farber
<rdrvr.biz(a)gmail.com> wrote:
Here is what I did:
| ma seaside |
seaside := WAKom default.
ma := ModuleAssembly core.
ma serverRoot: (FileDirectory default directoryNamed: 'static')
fullName.
ma alias: '/' to: [ma addPlug: [:request | seaside process:
request]].
ma documentRoot: (FileDirectory default directoryNamed: 'static')
fullName.
ma serveFiles.
(HttpService startOn: 8080 named: 'httpd') plug: ma rootModule
This serves static files and serves the root pier page (i.e localhost:
8080/), but I get Not Found for any interior pier pages (i.e.
localhost:8080/blog).
David
I'm not sure, but I think you would need another alias for the static
folder. Because normally (at least in other servers, which Komm seems
to be based loosely on) DocumentRoot is what / will point to, but
since you have used an alias to point that somewhere else I think you
would need another alias (e.g. /images) to point to the file system.
Also, do you have an actual directory called "static" somewhere on the
filesystem?
Seaside28Jetsam from squeaksource project Jetsam, it has a version of
WAFileLibrary which serves files form disk
Keith