require 'webrick' opts = { :BindAddress => IP, :Port => PORT, :DocumentRoot => DOC, :CGIInterpreter => CGI_PATH, :DoNotReverseLookup => true #ãããå ¥ãã } Webrickã®ã½ã¼ã¹è¦ãã¨ãã webrick/utils.rb 55è¡ããããã®ãgethostbynameãæªããèµ·ããã¦ããæ§å ## # The server hostname def getservername host = Socket::gethostname begin Socket::gethostbyname(host)[0] rescue host end end Linuxç³»ã®å ´åãåå解決系ãã¡ã¤ã« /etc/sysconf HOSTNAME=cent62.muka
{{#tags}}- {{label}}
{{/tags}}