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
2 answers

NameError in WelcomeController#index on RubyOnRails

I got this error NameError in WelcomeController#index uninitialized constant YouTubeIt Rails.root: C:/Sites/rails_code/youtube Btw i checked the gem author github, checked sintax of constant, seems everything's alright, so i can't figure it…
NeoVe
  • 3,857
  • 8
  • 54
  • 134
0
votes
2 answers

Different output in server log

I have 2 Ruby on Rails projects. When I start a rails server for the first project and login, I see this in the console: Started POST "/users/sign_in" for 127.0.0.1 at 2013-11-15 10:40:24 +0100 When I start the rails server for the second project…
John
  • 6,404
  • 14
  • 54
  • 106
0
votes
1 answer

WEBrick on Raspberry Pi gives "ThreadError: can't create Thread" after running for awhile

I've encountered a WEBrick + Rails problem & I haven't been able to find anyone else with the same issue. I run WEBrick in my Rails app with $ rvmsudo rails server -p 80 then I leave it in a detached screen and log out. If I wait a few days,…
Kevin Chen
  • 994
  • 8
  • 24
0
votes
1 answer

How can Webrick based (Non RoR, Sinatra) web application can be severed using Apache and Passenger?

I have developed a small ruby web application using Webrick abstract servlet , File-handler and basic authentication. Now I want this application to be served using apache and passenger, what are the options available Do I need to remove Webrick…
giddy
  • 3
  • 1
0
votes
2 answers

Error trying to start WEBrick in rails project

I'm struggling to get my WEBrick server started from within my rails project. This is an initial test to see if my setup is working. Everything is going well except that the server won't start now.. I'm getting the follow output in console when…
user818700
0
votes
2 answers

How to configure webrick port in eclipse?

Using Eclipse/Aptana, how can I change the default port for WEBrick from 3000 to anything else, using a configuration settings in the project? E.g. I want to be able to have multiple servers running for different projects on different ports. I don't…
Josh M.
  • 26,437
  • 24
  • 119
  • 200
0
votes
3 answers

Rails application not displaying index.html in development mode

I have placed an index.html file in the public directory of my Rails 4 application but it still shows this deleted file as rails welcome page. I am using Webrick in development mode. I have another app almost identical in setup which works fine.
markhorrocks
  • 1,199
  • 19
  • 82
  • 151
0
votes
1 answer

Rails 3.2.14 will not run Mongrel

I've seen dozens of links on how to fix this problem (a lot of them from stackoverflow), but nothing seems to work for me. No matter what I do WEBrick starts up instead of Mongrel. My environment: I'm using rvm... rvm 1.21.20 (stable) by Wayne E.…
dsmorey
  • 453
  • 1
  • 5
  • 16
0
votes
1 answer

Rails application behing proxy

I'm implementing Rails alumni application with Facebook API support. One of the requirements is to post a message from the application directly to facebook wall. Everything seems to work fine, however there is one issue which I can't fix. When I'm…
smithystar
  • 41
  • 1
  • 6
0
votes
2 answers

"No such file or directory - /public/settings.xml" in Rails when the file is there

As you can see, the file is there. I made sure to switch rights to that file to everyone - anythiig I am missing that is obvious? Ruby 1.8.7 Rails 3.0.3
naspinski
  • 34,020
  • 36
  • 111
  • 167
0
votes
2 answers

A blank in the URI works in production but fails in development

I have the following code which works in production: redirect_to "/mycontroller/index.html#&panel1-2?error=Invalid Member ID and/or Date of Birth" In development(using Webrick), I am getting the following error message: ERROR…
Anil
  • 3,899
  • 1
  • 20
  • 28
0
votes
1 answer

Redmine: cannot start WEBrick (LoadError)

I am working on a CentOs 5.5. I have never worked with ruby or rails before, but recently I had to upgrade a redmine 1.1.0 to version 2.3.1 following this tutorial. The update process went smoothly, but once I try to start WEBrick to host the…
0
votes
1 answer

Subdomain routing to main domain

I'm using sub-domains within my Padrino configuration. I've created multiple A records in AWS Route 53 to route to things like api.myapp.com & admin.myapp.com, myapp.com, www.myapp.com. This is working as expected. Here's what my configuration looks…
joslinm
  • 7,845
  • 6
  • 49
  • 72
0
votes
1 answer

Ruby: hide WEBrick httpd version

I'm using OpenVZ Web Panel to manage my VPS servers and when I scanned my server with nmap I saw: PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 6.0p1 Debian 4 (protocol 2.0) 135/tcp filtered msrpc 139/tcp filtered…
Camorra
  • 1
  • 1
0
votes
1 answer

Set Environment Variables in Rails' Webrick Server

we're using some Company-wide Auth-Module ( entrust getaccess) which basically leaves some environment variables after authentication (gid, username, etc...). To fake this auth for testing purposes I'd set the following env varibales in apache: …
McSlow
  • 69
  • 6