On Nov 12, 2008, at 10:53 PM, Jason Johnson wrote:
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?
Yes, I didn't think the DocumentRoot/ServerRoot settings were really
what I wanted to do, but I decided (for the time being) that it wasn't
worth my time to pursue. I will try to come back and take another
crack at it later.
Note, though, that with the setup above, the problem is accessing Pier
pages. It serves static files just fine.
David