On Nov 12, 2008, at 1:20 PM, Jason Johnson wrote:
On Wed, Nov 12, 2008 at 4:46 PM, David Farber
<rdrvr.biz(a)gmail.com>
wrote:
Thanks Jason. I've already seen these
instructions. The problem is
that they don't work if you are running pier from / instead of /
seaside/pier.
David
Ok, so you set the first MA module (or whatever it's called) to / and
pier? Then you set something like /images to static service? I
would expect that to work because I think I have the opposite (/ is
static, /pier is pier) and it works. But I would have to check, maybe
if you set anything to / then nothing else works? I think the author
of Komm is on the list.
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