523 questions
1 vote
1 answer
81 views
How can I configure WEBrick to use a Unix socket? [duplicate]
I'm building a small application using WEBrick. It's working nicely. However, it uses up a port. I'd rather implement it as a unix socket, but I have no idea how. I'm using WEBrick version 1.8.1 and ...
1 vote
1 answer
249 views
Why is Jekyll not working with live reload option?
Jekyll had been working fine for me about 50 times live-reloading. However, now, each time I want to use live-reload option it throws this error once and once again, many times: $ jekyll serve -l ...
0 votes
0 answers
66 views
better rails development server
The rails application I work on makes many 3rd party requests to get data. This often makes the development server slow because those requests takes a while to resolve and they block the other ...
0 votes
0 answers
89 views
How to Configure WEBrick to Display XHTML and its CSS
I cannot make WEBrick display an XHTML page and its associated CSS - the exact same file with an 'html' extension works perfectly, but it fails with an 'xhtml' extension. How can I configure WEBrick ...
0 votes
0 answers
100 views
WEBrick DocumentRoot for MP4s
I have a very simply ruby script to Serve the file system from one computer over the local host to my other PCs. I want MP4s to be watchable directly in the browser window. I've added the mime_type ...
4 votes
2 answers
3k views
ruby 3.0.4, redmine 5.0.0, rails 6.1.4, test install start with webrick fails, "wrong number of arguments"
New ubuntu-20 system with the following: ruby 3.0.4 rails 6.1.4 redmine 5.0.0 After install, trying to start webrick test server: bundle exec rails server webrick -e redmine_test fails with: /...
2 votes
0 answers
375 views
how to make redirect in webrick/ruby?
How to make Redirect in WEBRICK Ruby, can the simplest example with the syntax? In this example require 'webrick' class MyServlet < WEBrick::HTTPServlet::AbstractServlet def do_GET (...
1 vote
1 answer
375 views
How to modify HTML content on Webrick proxy server?
How can I use Ruby Webrick to do html content modification as it passes through a proxy server? require 'webrick' require 'webrick/httpproxy' handler = proc do |req, res| # if the_site_url == "...
0 votes
1 answer
36 views
webrick server not running on ruby version 5.0.7.2 on CLOUD9 IDE on AWS
I got into the app directory inside the blog folder and ran a command to start the WEBRick server: rails server -b $IP -p $PORT CODE CONSOLE IMAGE Above is the link for the image of my console. ...
1 vote
1 answer
1k views
How to start WEBrick Ruby server in secure SSL mode HTTPS
Start situation: Installed Linux Ubuntu operating system and Ruby via apt installer. After that installed WEBrick Ruby server via gem packgake handler. Applications with version numbers: Linux ...
0 votes
1 answer
94 views
How underscored directories are filtered in Jekyll/Webrick?
Update: Check my answer below. I just realized that in Jekyll Webrick server, directories starting with underscores(_includes, _layouts etc.) can't be accessed and are not listed when jekyll serve --...
0 votes
2 answers
457 views
How to change WEBrick :AccessLog option when running RedMine?
I'm running RedMine via WEBrick using the following command line (simplified): bundle exec rails server webrick -e production -p 3012 -P '/var/lib/redmine/redmine.pid' I don't like how WEBrick ...
1 vote
0 answers
131 views
Ruby, Webrick think every local port is already in use
I am developing a static site locally. To view it in a browser, I run this command ruby -run -ehttpd . -p8000 to run a local webserver at localhost:8000. Starting yesterday, when I run it, I get the ...
0 votes
1 answer
189 views
How to add a hostname to the LAN so that a Ruby web server, such as WEBrick can serve off that hostname?
We can use Ruby and WEBrick to start a local web server, just by ruby -run -e httpd -- -p 8080 . I have seen some iPhone / iPad app being able to add a hostname of http://awesome.local:1234 on the ...
11 votes
4 answers
4k views
Jekyll ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:17
I'm getting the following error in my console logs when running the bundle exec jekyll command. [2020-01-29 15:34:01] ERROR Errno::ECONNRESET: Connection reset by peer @ io_fillbuf - fd:16 /...