[Seaside] Re: Zinc as static file server
Sven Van Caekenberghe
sven at stfx.eu
Fri Sep 6 20:41:33 UTC 2013
On 06 Sep 2013, at 22:29, Dave <lasmiste at gmail.com> wrote:
> Got it!
> I was wrong, I pointed the browser to
> http://localhost:8080/testDir/image.jpg/ instead of
> Eventually I dig into the code and I discovered debugging
It is not the most beautiful of methods, but it is a crucial one for static file serving. There is indeed a difference between the URI/URL you're asking for and the directory on the file system where the file is found - the prefix part can be different.
> Sorry to have bugged you.
Asking questions is OK.
> Dave wrote
>> Paul DeBruicker wrote
>>> Oh and I don't think it will give a directory listing. Not sure but you
>>> might stick a file in that testDir and see if you can access it.
>> No way.
>> * I created testDir under the image file.
>> * The script is ZnZincStaticServerAdaptor startOn: 8080 andServeFilesFrom:
>> * I put a file image.jpg under testDir
>> * I point the browser at http://localhost:8080/image.jpg
>> Response: "Not Found /testDir/image.jpg"
> View this message in context: http://forum.world.st/Zinc-as-static-file-server-tp4571413p4706994.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside