我正试图让你的世界在sinatra远程工作:
require 'sinatra'
get '/' do
"hello world"
end
Run Code Online (Sandbox Code Playgroud)
在本地它工作正常:
curl localhost:4567
hello world
Run Code Online (Sandbox Code Playgroud)
但是当我尝试远程访问它时,我收到404错误.服务器可见; 我有其他Web应用程序运行正常(但不是非标准端口).这是一个近乎库存的ubuntu安装,所以没有任何iptables规则可以阻止访问端口4567.有什么我缺少的吗?谷歌搜索我有困难.