# Configurazione RAILS - WEBRick

**URL:** <https://www.ruby-forum.com/t/configurazione-rails-webrick/72376>\
**Category:** IT\
**Created:** [October 16, 2006, 9:24pm UTC](https://www.ruby-forum.com/t/configurazione-rails-webrick/72376 "2006-10-16T21:24:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnaudo\_Massimo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Arnaudo\_Massimo](https://www.ruby-forum.com/u/Arnaudo_Massimo)\
**Post date:** [October 16, 2006, 9:24pm UTC](https://www.ruby-forum.com/t/configurazione-rails-webrick/72376/1 "2006-10-16T21:24:10Z")

</div>

Ciao a tutti,  
su una macchina con sistema operativa XP noto un lentezza  
nell’operatività di RAILS.

Ho testato sotto debian e a colpo d’occhio ho trovato che WEBrick è in  
ascolto sulla sola porta locale, mentre sotto XP è tutto impostato a  
0.0.0.0:

sh-3.1$ ruby script/server  
=\> Booting WEBrick…  
=\> Rails application started on [http://127.0.0.1:3000](http://127.0.0.1:3000)  
=\> Ctrl-C to shutdown server; call with --help for options  
[2006-10-16 21:05:36] INFO WEBrick 1.3.1  
[2006-10-16 21:05:36] INFO ruby 1.8.5 (2006-08-25) [i486-linux]  
[2006-10-16 21:05:36] INFO WEBrick::HTTPServer#start: pid=7145  
port=3000

Dove posso agire per limitare le porte al solo localhost?

## Grazie Massimo

E impari che puoi davvero sopportare,  
che sei davvero forte,  
e che vali davvero.

* * *

HomePage: [http://www.massimo.arnaudo.name](http://www.massimo.arnaudo.name)  
LinuxGroup: [http://www.lugge.net](http://www.lugge.net)

---

<div class="post-metadata">

**Author:** ![Arnaudo\_Massimo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Arnaudo\_Massimo](https://www.ruby-forum.com/u/Arnaudo_Massimo)\
**Post date:** [October 17, 2006, 1:23pm UTC](https://www.ruby-forum.com/t/configurazione-rails-webrick/72376/2 "2006-10-17T13:23:13Z")

</div>

Arnaudo Massimo wrote:

> Ciao a tutti,  
> su una macchina con sistema operativa XP noto un lentezza  
> nell’operatività di RAILS.

In effetti, ci mette un po’ a partire.

> Ho testato sotto debian e a colpo d’occhio ho trovato che WEBrick è in  
> ascolto sulla sola porta locale, mentre sotto XP è tutto impostato a  
> 0.0.0.0:
> 
> Dove posso agire per limitare le porte al solo localhost?

$ script/server -h  
=\> Booting WEBrick…  
Usage: ruby server [options]

```
-p, --port=port Runs Rails on the specified port.
                                 Default: 3000
-b, --binding=ip Binds Rails to the specified ip.
                                 Default: 0.0.0.0
-e, --environment=name Specifies the environment to run

```

this server under (test/development/production).  
Default: development  
-m, --mime-types=filename Specifies an Apache style  
mime.types configuration file to be used for mime types  
Default: none  
-d, --daemon Make Rails run as a Daemon (only  
works if fork is available – meaning on \*nix).  
-c, --charset=charset Set default charset for output.  
Default: UTF-8

```
-h, --help Show this help message.

```

Buon cambio di listening interface!

–  
_Luca S.G. de Marinis_ - Software Engineer - Interact S.r.L.  
[http://www.interact.it](http://www.interact.it)

Le informazioni trasmesse attraverso la presente e-mail ed i suoi  
allegati sono diretti esclusivamente al destinatario e devono ritenersi  
riservati con divieto di diffusione e di uso. La diffusione e la  
comunicazione da parte di soggetto diverso dal destinatario è vietata  
dall’art. 616 e ss. c.p. e dal d. l.vo n. 196/03.  
Se la presente e-mail ed i suoi allegati fossero stati ricevuti per  
errore da persona diversa dal destinatario siete pregati di distruggere  
tutto quanto ricevuto e di informare il mittente con lo stesso mezzo.

The information transmitted via the current e-mail and the enclosed  
documents are directed exclusively towards the intended addressee and  
must be considered confidential; any distribution and use are strictly  
prohibited.  
Diffusion and communication of the information contained in this message  
by anyone other than the addressee is prohibited by art. 616 and the  
following sections of penal code and the legislative decree no. 196/03.  
Should the current e-mail and its attachments be received by mistake by  
persons other than the addressee, you are requested to destroy the  
entire message and inform the sender using the same means.

---

<div class="post-metadata">

**Author:** ![Arnaudo\_Massimo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f04885/32.png) [@Arnaudo\_Massimo](https://www.ruby-forum.com/u/Arnaudo_Massimo)\
**Post date:** [October 17, 2006, 9:58pm UTC](https://www.ruby-forum.com/t/configurazione-rails-webrick/72376/3 "2006-10-17T21:58:32Z")

</div>

- Luca de Marinis [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) [martedì 17 ottobre 2006, alle  
13:21]:

> server under (test/development/production).
> 
> Buon cambio di listening interface!

Ciao,  
grazie per la dritta, ma vorrei rendere la cosa definitiva modificando  
il valore di defult: in quale file si modifica tale valore?

## Grazie Massimo

E impari che puoi davvero sopportare,  
che sei davvero forte,  
e che vali davvero.

* * *

HomePage: [http://www.massimo.arnaudo.name](http://www.massimo.arnaudo.name)  
LinuxGroup: [http://www.lugge.net](http://www.lugge.net)
