[Seaside] Lighttpd server and seaside

Dale Henrichs dale.henrichs at gemstone.com
Fri Sep 19 17:06:24 UTC 2008


Dale Henrichs wrote:

> Dario Trussardi wrote:
>
>> Hi All,
>>
>> I work wit GLASS ( Gemstone 2.2.5.4) on a Ubuntu with Lighttpd web
>> server configured on port 8181.
>>
>> I have some description based on MAFileDescription.
>> My objective is to manage the relative I/O file from the lighttpd
>> server.
>>
>> I add to the MAFileDescription  the code kind: MAExternalFileModel.
>>
>> And i change the baseUrl of MAExternalFileModel to: '192.168.1.100:8181'
>> for point to the server.
>>
>> But d'ont work.
>>
>>
>> Now for understand the configuration  i think to test all in Squeak (
>> Seaside 2.8a1 pmm.577 )
>>
>> A) I have do some test about lighttpd configuration.
>>
>> The fastcgi.server work fine.
>>
>> But the server.document-root d'ont work.
>>
>> In the server i have create the /var/www/testdtr with the file pizze.jpg
>>
>> And the lighttpg.conf is set with:
>> .......
>>  
>>
>>> server.document-root       = "/var/www/"   
>>
>>
>>
>> $HTTP["url"]=~ "/image" {
>>  
>>
>>> server.document-root       = "/var/www/testdtr/"}
>>>
>>>   
>>
>>
>> Now from the browser when digit  :
>>
>> 1) http://192.168.1.100:8181/testdtr the system answer with the Index of
>> /testdtr/
>>
>> 2) http://192.168.1.100:8181/image       or 
>> http://192.168.1.100:8181/image/pizze.jpg  the system answer the
>> error HTTP 404 file not found
>>
>> Anyone have idea about this problem ?
>>
>> B) For now the MAFileDescription configured as on, when define  save the
>> relative file on Squeak2.3\File\fb\goz........ directory on the client.
>>
>>    And when view d'ont display anything . The relative URL is set
>> 192.168.1.100:8181/image/fb/goz....
>>    Where i wrong ?
>>
>>
>> Any pointers would be greatly appreciated!
>>
>> Thanks!
>>
>>
>>
>>
>>
>>
>>  
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>  
>>
> Dario,
>
> I've attached a portion of a lighttpd conf file that I've found will 
> cork correctly to access the file foto1 from this url 
> http://penny:8181/image/foto1 and accesses seaside via fastcgi for 
> this url http://penny:8181/seaside. You should be able to adapt the 
> file to your needs.
>
> Dale
>
>------------------------------------------------------------------------
>
>server.modules   += ( "mod_fastcgi" )
>
>$HTTP["url"] =~ "^/image/" {
>    server.document-root = "/export/penny1/users/dhenrich/"
>} else $HTTP["url"] =~ "^/seaside" {
>
>    fastcgi.server    = (
>        "/seaside" =>
>            (
>
>                ("host" => "10.80.250.51","port" => 9001,"check-local" => "disable","mode" => "responder" ),
>                ("host" => "10.80.250.51","port" => 9002,"check-local" => "disable","mode" => "responder" ),
>                ("host" => "10.80.250.51","port" => 9003,"check-local" => "disable","mode" => "responder" ),
>            ),
>
>   )
>}
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>seaside mailing list
>seaside at lists.squeakfoundation.org
>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>  
>
BTW, the foto1 file resides in the directory 
/export/penny1/users/dhenrich/image.

Dale


More information about the seaside mailing list