Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

静的ページの作成 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

miketa-webprgr
Copy link
Owner

解説

webrick.rb

DocumentRootは最初にWebサーバーであるwebrickが何のファイルを返すか示している。
特に記載せずとも、どうやらデフォルトでルートディレクトリにあるindex.htmlを返す仕様らしい。
ここであえて、:DocumentRoot => './users/taro.html'と記載すれば、taroがlocalhost: 8000で返るはず。

BindAddressはおそらく、ip番号を示している。
127.0.0.1というのはローカルホストを指す特殊な番号。

htmlファイル

  • headタグがないから怒られそう
  • インデント2スペースだから怒られそう

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant