Web server configuration and Pharo support

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

Web server configuration and Pharo support

dario trussardi
Ciao,

        i work at application based on Seaside framework.

        For now i development with Pharo 1.3 but my goal is to port all to GLASS environment.

        I have a server where i run Lighttpd server to redirect the request to specific GLASS environment.

        For example i have this lighttpd configuration :

                 $HTTP["url"] =~ "^/lorizzonte" {
    fastcgi.server = (
                                                      "/lorizzonte" =>
      (
       ("host" => "192.168.1.100","port" => 9030,"check-local" => "disable","mode" => "responder" ), \



        Now in development cicle i have a MacBook computer where i run Pharo 1.3.

        My objective is to redirect some web request to this Pharo environment.

        On my server i have setting a lighttpd server to redirect the request from internet to  MacBook with 192.168.1.222 IP on port 1701.

                fastcgi.server = ( "/mysite" => (
                        ("host" => "192.168.1.222","port" => 1701,"check-local" => "disable","mode" => "responder" ),
                       

        Now i do some test with ZincComponent load in the Pharo 1.3 image.

        I start the ZnServer  with :
       

                (ZnServer startDefaultOn: 1701)
                         logToTranscript;
  onRequestRespond: [ :request |
                                                                Transcript cr; show: '****'; show: request asString.
      ZnResponse ok: (ZnEntity text: 'Hello World!') ].


        but the request are not right managed.

        I need to load some specific Zinc component ?

        I need to load some FCGI  support ?

       

        Considering my goal to port all to glass what the best configuration  to do testing in Pharo and Lighttpd server.


        Thanks for any consideration ?


        Dario


Reply | Threaded
Open this post in threaded view
|

Re: Web server configuration and Pharo support

Dale Henrichs
Dario,

If I read things correctly it appears that you are directing FastCGI requests to the Pharo implementation. I think you would simply pass the http requests directly to Pharo ... my lighttpd foo is very rusty and I don't have an offhand lighttpd solution, but you shouldn't be trying to send FastCGI requests to your Pharo instance ...

Dale

----- Original Message -----
| From: "Dario Trussardi" <[hidden email]>
| To: "beta discussion Gemstone Seaside" <[hidden email]>
| Sent: Tuesday, June 19, 2012 1:18:42 AM
| Subject: [GS/SS Beta] Web server configuration and Pharo support
|
| Ciao,
|
| i work at application based on Seaside framework.
|
| For now i development with Pharo 1.3 but my goal is to port all to
| GLASS environment.
|
| I have a server where i run Lighttpd server to redirect the request
| to specific GLASS environment.
|
| For example i have this lighttpd configuration :
|
| $HTTP["url"] =~ "^/lorizzonte" {
|     fastcgi.server = (
|      "/lorizzonte" =>
|       (
|        ("host" => "192.168.1.100","port" => 9030,"check-local"
|        => "disable","mode" => "responder" ), \
|
|
|
| Now in development cicle i have a MacBook computer where i run Pharo
| 1.3.
|
| My objective is to redirect some web request to this Pharo
| environment.
|
| On my server i have setting a lighttpd server to redirect the
| request from internet to  MacBook with 192.168.1.222 IP on port
| 1701.
|
| fastcgi.server = ( "/mysite" => (
| ("host" => "192.168.1.222","port" => 1701,"check-local" =>
| "disable","mode" => "responder" ),
|
|
| Now i do some test with ZincComponent load in the Pharo 1.3 image.
|
| I start the ZnServer  with :
|
|
| (ZnServer startDefaultOn: 1701)
| logToTranscript;
|   onRequestRespond: [ :request |
| Transcript cr; show: '****'; show: request asString.
|       ZnResponse ok: (ZnEntity text: 'Hello World!') ].
|
|
| but the request are not right managed.
|
| I need to load some specific Zinc component ?
|
| I need to load some FCGI  support ?
|
|
|
| Considering my goal to port all to glass what the best configuration
| to do testing in Pharo and Lighttpd server.
|
|
| Thanks for any consideration ?
|
|
| Dario
|
|
|
Reply | Threaded
Open this post in threaded view
|

Re: Web server configuration and Pharo support

dario trussardi
Ciao Dale,

        i configured lighttpd proxy and all fork fine.

         $HTTP["url"] =~ "" {
                proxy.server = ( "" =>
                         ( ("host" => "192.168.1.222","port" => 9090 ) ) ) }


        Thanks.
                        Dario

        P.S. In the next weeks  i'm ready to test Gemstone 3.1

> Dario,
>
> If I read things correctly it appears that you are directing FastCGI requests to the Pharo implementation. I think you would simply pass the http requests directly to Pharo ... my lighttpd foo is very rusty and I don't have an offhand lighttpd solution, but you shouldn't be trying to send FastCGI requests to your Pharo instance ...
>
> Dale
>
> ----- Original Message -----
> | From: "Dario Trussardi" <[hidden email]>
> | To: "beta discussion Gemstone Seaside" <[hidden email]>
> | Sent: Tuesday, June 19, 2012 1:18:42 AM
> | Subject: [GS/SS Beta] Web server configuration and Pharo support
> |
> | Ciao,
> |
> | i work at application based on Seaside framework.
> |
> | For now i development with Pharo 1.3 but my goal is to port all to
> | GLASS environment.
> |
> | I have a server where i run Lighttpd server to redirect the request
> | to specific GLASS environment.
> |
> | For example i have this lighttpd configuration :
> |
> | $HTTP["url"] =~ "^/lorizzonte" {
> |     fastcgi.server = (
> |      "/lorizzonte" =>
> |       (
> |        ("host" => "192.168.1.100","port" => 9030,"check-local"
> |        => "disable","mode" => "responder" ), \
> |
> |
> |
> | Now in development cicle i have a MacBook computer where i run Pharo
> | 1.3.
> |
> | My objective is to redirect some web request to this Pharo
> | environment.
> |
> | On my server i have setting a lighttpd server to redirect the
> | request from internet to  MacBook with 192.168.1.222 IP on port
> | 1701.
> |
> | fastcgi.server = ( "/mysite" => (
> | ("host" => "192.168.1.222","port" => 1701,"check-local" =>
> | "disable","mode" => "responder" ),
> |
> |
> | Now i do some test with ZincComponent load in the Pharo 1.3 image.
> |
> | I start the ZnServer  with :
> |
> |
> | (ZnServer startDefaultOn: 1701)
> | logToTranscript;
> |   onRequestRespond: [ :request |
> | Transcript cr; show: '****'; show: request asString.
> |       ZnResponse ok: (ZnEntity text: 'Hello World!') ].
> |
> |
> | but the request are not right managed.
> |
> | I need to load some specific Zinc component ?
> |
> | I need to load some FCGI  support ?
> |
> |
> |
> | Considering my goal to port all to glass what the best configuration
> | to do testing in Pharo and Lighttpd server.
> |
> |
> | Thanks for any consideration ?
> |
> |
> | Dario
> |
> |
> |