0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Apacheの仕組み ざっくり解説

Posted at

apacheの仕組みについて解説

apacheってwebサーバで、フロントで動いているなーくらいの認識しかなかった私ですが、今回仕組みについて調査したので、備忘としてまとめます。

なぜいまさらapacheなのかというと・・・

チャットボットを自作しようとしていて、組み込み対象となるwebサイトを探していた時に今回の調査したwebサーバがapacheで動いていたためでした。

大まかな仕組みとしては以下

  1. Apache を起動すると
    /usr/sbin/httpd(実行ファイル)
    が起動

  2. 起動時に読み込まれる設定ファイルが
    /etc/httpd/conf/httpd.conf

  3. httpd.conf の中で指示されているのが
    ・どこを Web コンテンツとして公開するか → DocumentRoot
    ・どのポートで待ち受けるか → Listen
    ・どのモジュールを使うか → LoadModule
    ・どのフォルダにどんなアクセス制限をかけるか → など

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?