WAKom configuration for static files does not work if image is moved to another host

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

WAKom configuration for static files does not work if image is moved to another host

NorbertHartl
I'm developing a web application on my linux laptop. To
be as self contained as possible I configured WAKom to
serve the javascript and stylesheet files with the
following configuration:

ma := ModuleAssembly core.
ma serverRoot: (FileDirectory default directoryNamed: 'webroot')
fullName.
ma alias: '/seaside' to: [ma addPlug: [:request | seaside process:
request]].
ma documentRoot: (FileDirectory default directoryNamed: 'webroot')
fullName.
ma directoryIndex: 'index.html index.htm'.
ma serveFiles.
(HttpService startOn: 9090 named: 'httpd') plug: ma rootModule

This works quite well. But if I move the image to another host the
web application works but the image does not serve the static
files. For every request I get an 404 from Comanche.

Any ideas? I've checked that there are no permission problems
or similar things.

Norbert



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WAKom configuration for static files does not work if image is moved to another host

Philippe Marschall
2008/9/10 Norbert Hartl <[hidden email]>:

> I'm developing a web application on my linux laptop. To
> be as self contained as possible I configured WAKom to
> serve the javascript and stylesheet files with the
> following configuration:
>
> ma := ModuleAssembly core.
> ma serverRoot: (FileDirectory default directoryNamed: 'webroot')
> fullName.
> ma alias: '/seaside' to: [ma addPlug: [:request | seaside process:
> request]].
> ma documentRoot: (FileDirectory default directoryNamed: 'webroot')
> fullName.
> ma directoryIndex: 'index.html index.htm'.
> ma serveFiles.
> (HttpService startOn: 9090 named: 'httpd') plug: ma rootModule
>
> This works quite well. But if I move the image to another host the
> web application works but the image does not serve the static
> files. For every request I get an 404 from Comanche.
>
> Any ideas? I've checked that there are no permission problems
> or similar things.

Of course, the problem is that the FileDirectory still points to the
old, no longer existing folder.

FileDirectory default directoryNamed: 'webroot'

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WAKom configuration for static files does not work if image is moved to another host

NorbertHartl
On Thu, 2008-09-11 at 08:28 +0200, Philippe Marschall wrote:

> 2008/9/10 Norbert Hartl <[hidden email]>:
> > I'm developing a web application on my linux laptop. To
> > be as self contained as possible I configured WAKom to
> > serve the javascript and stylesheet files with the
> > following configuration:
> >
> > ma := ModuleAssembly core.
> > ma serverRoot: (FileDirectory default directoryNamed: 'webroot')
> > fullName.
> > ma alias: '/seaside' to: [ma addPlug: [:request | seaside process:
> > request]].
> > ma documentRoot: (FileDirectory default directoryNamed: 'webroot')
> > fullName.
> > ma directoryIndex: 'index.html index.htm'.
> > ma serveFiles.
> > (HttpService startOn: 9090 named: 'httpd') plug: ma rootModule
> >
> > This works quite well. But if I move the image to another host the
> > web application works but the image does not serve the static
> > files. For every request I get an 404 from Comanche.
> >
> > Any ideas? I've checked that there are no permission problems
> > or similar things.
>
> Of course, the problem is that the FileDirectory still points to the
> old, no longer existing folder.
>
> FileDirectory default directoryNamed: 'webroot'
>
Of course, stupid me! Thanks very much! I guess I should add this to
StartupList.

Norbert

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside