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
25
votes
4 answers

We're sorry, but something went wrong. - with Rails, Apache, Passenger

I have Rails 3.2.3 with Apache and Passenger. I have a project working in development mode. When I switch the project to production mode (Passenger standard) it gives me an HTTP Error 500: We're sorry, but something went wrong. This happens even…
Michael Stark
  • 635
  • 2
  • 9
  • 17
22
votes
2 answers

How do I cleanly shut down an embedded JRuby in response to a SIGTERM to the JVM process?

I am running a Middleman (which uses Webrick) server on JRuby inside a JVM process using the org.jruby.embed.ScriptingContainer API. If I shutdown cleanly and stop the server from inside the JVM, everything works as expected. But if I send a SIGTERM…
levand
  • 8,440
  • 3
  • 41
  • 54
22
votes
4 answers

Change local web server back to WEBrick in Rails from Puma

I was following the Heroku docs on getting Puma set up and entered this command: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development} Which made it so that now I run puma in my development environment whenever I run a rails s. But…
james
  • 3,989
  • 8
  • 47
  • 102
19
votes
2 answers

How to start WEBrick in a different port than 3000

[2011-09-11 06:14:12] INFO WEBrick::HTTPServer#start: pid=32723 port=3000 How to start WEBrick in a different port than 3000, is there a way to specify this information in a config file instead of the command line argument ("-p")
Jason
  • 12,229
  • 20
  • 51
  • 66
19
votes
5 answers

How to use deactivate Webrick's SSL

Last week I tried to debug with SSL activated in webbrick, but I forget how to restore the settings to default(without SSL). Every time I visit a controller, now it shows: SSL connection error Unable to make a secure connection to the server.…
Howard Huang
  • 355
  • 1
  • 4
  • 9
19
votes
2 answers

Configuring WEBrick to use SSL in Rails 4

I have a Rails App that I want to deploy on SharePoint 2013. In order to achieve some means of authentication, I need the WEBrick server to serve ssl https and listen to incoming https on port https://localhost:3001. Unfortunately, I am not very…
VikingR
  • 301
  • 1
  • 3
  • 8
17
votes
4 answers

Can I get Rails debugging output in Pow similar to WEBrick?

When I use rails/server (WEBrick) I get constant debug info (queries, etc) from my rails app as console output. Is there a way to get this debug output with Pow? Thanks
Mitciv
  • 813
  • 3
  • 15
  • 21
17
votes
5 answers

OmniAuth Google OpenID WEBrick::HTTPStatus::RequestURITooLarge

I am using OmniAuth to allow users to log in with their Google OpenID accounts. When I try to log in in development mode with WEBrick, I get a WEBrick::HTTPStatus::RequestURITooLarge error. When I deploy it to my rails host, it works fine. Is there…
Shlomo Zalman Heigh
  • 3,968
  • 8
  • 41
  • 71
16
votes
1 answer

Disabling echo from webrick

How can I disable messages from webrick echoed on to the terminal? For the INFO messages that appear at the beginning, I was able to disable it by setting the Logger parameter so as: s = WEBrick::HTTPServer.new( Port: 3000, BindAddress:…
sawa
  • 165,429
  • 45
  • 277
  • 381
16
votes
2 answers

Is there a way to tell RubyMine to not use webrick?

When I start my app up in RubyMine I want to be able to use unicorn and my unicorn configs. Is there any way to tell it not to use webrick but use something else like unicorn or thin?
Ben
  • 9,725
  • 6
  • 23
  • 28
16
votes
1 answer

Docker container sending empty responses

Hoping someone can tell me what I am missing? This is a ruby app using webrick and I am trying to containerize the app. Running on Mac OSX 10.12.3 Sierra. Here is my Dockerfile FROM ruby:2.4.0-alpine RUN apk add --no-cache gcc musl-dev libstdc++ g++…
Christian Bongiorno
  • 5,150
  • 3
  • 38
  • 76
15
votes
2 answers

Changing the base URL for Rails 3 development

I know I'm going to deploy to an environment with my application running with a base URL which looks like this: http://someserver/mydepartment/myapp My development environment is set up to use the default Rails configuration, which looks like…
Matthew Simoneau
  • 6,199
  • 6
  • 35
  • 46
14
votes
3 answers

can't open rails server

I don't know what I did. I think I updated my Ruby on Rails. After updating it, I always get error when running $rails server. output is ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/utils.rb:73:in `initialize': Address already in use - bind(2)…
hlim
  • 945
  • 1
  • 9
  • 16
14
votes
4 answers

Running Webrick server in background?

MBPro:shovell myname$ ruby script/server => Booting WEBrick => Rails 2.3.8 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2010-08-01 15:28:35] INFO WEBrick 1.3.1 [2010-08-01 15:28:35] INFO ruby…
eozzy
  • 66,048
  • 104
  • 272
  • 428
14
votes
1 answer

Configure WEBrick to use automatically generated self-signed SSL/HTTPS certificate

I want to develop my Ruby on Rails application locally with SSL/HTTPS, but I'm having trouble trying to setup a server to use SSL. The following are the things I've already tried so far: rails server [options] The rails server command doesn't come…
user456814
1
2
3
34 35