Help us understand the problem. What is going on with this article?

【俺得】Apache基本コマンド①

apache の基本

ディレクトリ構成

/etc/httpd/・・・サーバルート
/etc/httpd/conf・・・各種configディレクトリ
/etc/httpd/conf.d/・・・外部configディレクトリ
/etc/httpd/logs/・・・ログディレクトリ
/var/www/html/・・・ドキュメントルート(静的コンテンツディレクトリ)

初期設定ファイル

httpd.conf

■場所
/etc/httpd/conf/

■内容(抜粋)

Listen 80

⇒リッスンポートの指定

IncludeOptional conf.d/*.conf

⇒外部configの読み込み

welcome.conf

■場所
/etc/httpd/conf.d/

■内容

<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /.noindex.html
</LocationMatch>

http://xxx/ or http://xxx// or http://xxx///の場合
 ディレクトリインデックス画面を無効果(ブラウザへディレクトリ構成表示しない) 
 httpステータス 403になる為、/.noindex.htmlを表示する

<Directory /usr/share/httpd/noindex>
    AllowOverride None
    Require all granted
</Directory>

⇒/usr/share/httpd/noindexに対して
 noindex以下で個別の設定変更することはできません。
 /usr/share/httpd/noindexに対して全アクセス拒否
 
※参考URL
http://www.hizlab.net/app/apache.html

https://7me.oji.0j0.jp/2016/apache24-require-order.html

Alias /.noindex.html /usr/share/httpd/noindex/index.html

⇒/.noindex.htmlを/usr/share/httpd/noindex/index.htmlへと読み替える。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away