Questions tagged [webrick]

Webrick is a zero-configuration HTTP server stack chiefly used as the web server for the Ruby on Rails framework development and test environments.

WEBrick is an HTTP server toolkit that can be configured as an HTTPS server, a proxy server, and a virtual-host server. WEBrick features complete logging of both server operations and HTTP access.

A WEBrick server can be composed of multiple WEBrick servers or servlets to provide differing behavior on a per-host or per-path basis. WEBrick includes servlets for handling CGI scripts, ERb pages, ruby blocks and directory listings.

WEBrick also includes tools to run a process as a service and starting a process at a higher privilege level and dropping permissions.

From the version of ruby 1.9.1 Webrick is a part of ruby standard library. More info is on ruby docs. Sources for an older ruby version is on github.

523 questions
0
votes
1 answer

Rails server won't respond to any request outside the local network

I'm running Rails con a VM with a bridged interface, it has it's own IP in the local network. When I start rails in 0.0.0.0:3000 I can access it using the local network IP in the port 3000 without any problem. The router NAT configuration is to…
Zequez
  • 3,399
  • 2
  • 31
  • 42
0
votes
0 answers

pulling data from mysql in app open only in browser

When I open a backbone app, which uses mysql, in Firefox, this is the url of the index. file:///Users/mm/Sites/ccoenraets/web/index.html# In the app itself, this is the url where it's supposed to retrieve the data from …
BrainLikeADullPencil
  • 11,313
  • 24
  • 78
  • 134
0
votes
0 answers

How to make my server handle tons of Ajax responses in the best way possible?

I haven't worked with servers in a while, so this is probably a really obvious question. I'm using WeBRick on Heroku to host a Rails application (I know I should use a better server, but it's still very early). When the user clicks a button on my…
Andrew Latham
  • 5,982
  • 14
  • 47
  • 87
0
votes
1 answer

Ruby Webrick HTTP Authentication

How can I do the same authentication stuff in this page using a subclass like this: class Configuration < HTTPServlet::AbstractServlet def do_GET (request, response) SOMETHING.... end end server =…
Cihan Keser
  • 3,190
  • 4
  • 30
  • 43
0
votes
0 answers

Rails - decompressing HTTP request

Is there some way to decompress HTTP request (sent from mobile phone) on server side? Will be this done using Ruby, or server's means makes no difference. Servers planned to use are: Webrick, Thin and Apache2. I am planning to compress request in my…
Paul
  • 25,812
  • 38
  • 124
  • 247
0
votes
1 answer

How to start webrick server in verbose mode for a rails app to see the HTTP request/response header on console?

I am developing an API for one of my android app in rails. I am trying to keep the user session active through the cookies what warden/devise has already implemented for it, through out the all subsequent request. Thanks in advance.
Amitesh
  • 2,917
  • 2
  • 19
  • 14
0
votes
1 answer

Sinatra /w Thin: Logging?

I recently installed Thin for a Sinatra app I'm developing. However, it does not seem to be logging/outputing request, response and error messages a la WEBrick. Is there any way to turn these on, and to also use a debugging logger? If not, I will…
Richard Stokes
  • 3,532
  • 7
  • 41
  • 57
0
votes
2 answers

running ancient Rails 1.2 project on OSX fails

I'm trying to run 1.2 rails project on my OSX, however I encounter this error which I have never seen before, I could not google the solution, any tips? Mac@MKK.local:~/projects/rails/ktb/script$./server -p 3001 => Booting…
mkk
  • 7,583
  • 7
  • 46
  • 62
0
votes
1 answer

Can I filter the content of SSL website using WEBrick proxy server

I'm making content filtering proxy server using WEBrick. Can I change/filter the content of ssl-encrypted page? Thanks. here is my code; #!/usr/bin/env ruby require "webrick" require "webrick/httpproxy" require "ruby-debug" include…
mitsuki
  • 21
  • 2
0
votes
1 answer

How to Start WEBrick Server in Rubymine Console from Ruby Script

I have Ruby script that creates a proxy so that I can make HTTP request to a server from the command line using a session ID that the server expects. First of all, the script works great when I run it from the command line @web_server_thread =…
marteljn
  • 6,446
  • 3
  • 30
  • 43
0
votes
1 answer

Sinatra Padrino simple App does not run

I have written a few plain Sinatra apps using data mapper. I wanted to try Padrino. Went to padrinorb.com On the front page there is gem install padrino padrino g project myapp -d datamapper -b cd myapp padrino g admin padrino rake dm:migrate…
Tom Andersen
  • 7,132
  • 3
  • 38
  • 55
0
votes
1 answer

Rails Server requiring restart to show changes

I'm currently learning Ruby on Rails with the help of the Book "Agile Web Development with Rails", but I have a problem with the first application. I created the app with rails new depot and generated the scaffold with rails generate scaffold…
Rene Koller
  • 375
  • 1
  • 6
  • 15
0
votes
1 answer

WEBrick CGI handler pointing to wrong gem location

I am trying to execute my CGI program from WEBrick CGIhandler and kept failing with 'loaderror' of gem libraries. Is someone seen following behavior before? How could I get my CGI scripts to search valid gem location? [Situaltion] When I ran CGI…
charles
  • 15
  • 3
0
votes
1 answer

Rails won't serve static content on Webrick in development mode

I have been trying almost everything to get rails/webrick to serve an html file in development mode, however I keep getting the following error: No route matches [GET] "/public/index.html" Even after setting config.assets.enabled = true nothing…
Jackson Henley
  • 1,531
  • 2
  • 15
  • 27
0
votes
2 answers

Running ssh from ruby on rails app in apache server is not working but it works with the WEBrick

I have configured the Ruby On Rails Project on the Apache with the passenger but when I am doing the ssh using the application then its not working and gives this error in the apache log. Could not create directory '/var/www/.ssh'. Host key…
Anup Pareek
  • 159
  • 1
  • 16
1 2 3
34
35