よく使うapacheの設定場所まとめ


DocumentRootを確認する。

httpd.confの中にDocumentRootは存在します。

/etc/httpd/conf/httpd.conf

error_logの場所

less /var/log/httpd/error_log

access_logの場所

/var/log/httpd/access_log

.htaccessの設定

.htaccessは、httpd.confで設定可能。

<Directory />
~中略~
AllowOverride None
~中略~
</Directory>


<Directory />
~中略~
AllowOverride All
~中略~
</Directory>

参考URL:https://www.be-webdesigner.com/technotes/server/httpd_conf/htaccess.htm