-root@centos-server ~]# which httpd
/usr/sbin/httpd
[root@centos-server ~]# /usr/sbin/httpd -V | egrep ROOT\|SERVER_CONFIG
-D HTTPD_ROOT="/etc/httpd"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
[root@centos-server ~]# grep "^[iI]nclude" /etc/httpd/conf/httpd.conf
Include conf.d/*.conf
[root@centos-server ~]# ls -la /etc/httpd/conf.d/
total 16
drwxr-xr-x. 2 root root 4096 Aug 14 21:06 .
drwxr-xr-x. 4 root root 4096 Aug 14 21:06 ..
-rw-r--r--. 1 root root 392 Jul 23 14:18 README
-rw-r--r--. 1 root root 299 Jul 18 06:27 welcome.conf
...... here will be your other confs that are included
/usr/sbin/httpd
[root@centos-server ~]# /usr/sbin/httpd -V | egrep ROOT\|SERVER_CONFIG
-D HTTPD_ROOT="/etc/httpd"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
[root@centos-server ~]# grep "^[iI]nclude" /etc/httpd/conf/httpd.conf
Include conf.d/*.conf
[root@centos-server ~]# ls -la /etc/httpd/conf.d/
total 16
drwxr-xr-x. 2 root root 4096 Aug 14 21:06 .
drwxr-xr-x. 4 root root 4096 Aug 14 21:06 ..
-rw-r--r--. 1 root root 392 Jul 23 14:18 README
-rw-r--r--. 1 root root 299 Jul 18 06:27 welcome.conf
...... here will be your other confs that are included
[root@centos-server ~]# less /etc/httpd/conf.d/welcome.conf
#
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>
No comments:
Post a Comment