2018-07-27
Ubuntu 18.04 用 apt-get 安裝
設定檔案在 /etc/apache2 目錄
john@ubuntu1804:/etc/apache2$ ls -al
total 96
drwxr-xr-x 8 root root 4096 七 27 04:06 .
drwxr-xr-x 123 root root 12288 七 27 04:06 ..
-rw-r--r-- 1 root root 7224 六 8 05:10 apache2.conf
drwxr-xr-x 2 root root 4096 七 27 04:06 conf-available
drwxr-xr-x 2 root root 4096 七 27 04:06 conf-enabled
-rw-r--r-- 1 root root 1782 六 8 05:10 envvars
-rw-r--r-- 1 root root 31063 六 8 05:10 magic
drwxr-xr-x 2 root root 12288 七 27 04:06 mods-available
drwxr-xr-x 2 root root 4096 七 27 04:06 mods-enabled
-rw-r--r-- 1 root root 320 六 8 05:10 ports.conf
drwxr-xr-x 2 root root 4096 七 27 04:06 sites-available
drwxr-xr-x 2 root root 4096 七 27 04:06 sites-enabled
john@ubuntu1804:/etc/apache2$
Google 找 "sites-available" site:httpd.apache.org
並沒有發現,表示這種放置方式,似乎並非 Apache 官方預設的方式。
CentOS 7.5 用 yum 安裝 apache httpd
[root@localhost ~]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Jun 27 2018 13:48:59
[root@localhost ~]#
設定檔案目錄在 /etc/httpd 目錄
主要設定檔是 /etc/httpd/conf/httpd.conf
/usr/local/apache2/conf/httpd.conf
設定檔案在
/usr/local/apache2/conf/httpd.conf
[root@localhost conf]# pwd
/usr/local/apache2/conf
[root@localhost conf]# ls -al
total 100
drwxr-xr-x. 4 root root 84 Jul 27 03:31 .
drwxr-xr-x. 15 root root 175 Jul 27 03:31 ..
drwxr-xr-x. 2 root root 4096 Jul 27 03:31 extra
-rw-r--r--. 1 root root 18282 Jul 27 03:31 httpd.conf
-rw-r--r--. 1 root root 13077 Jul 27 03:31 magic
-rw-r--r--. 1 root root 60847 Jul 27 03:31 mime.types
drwxr-xr-x. 3 root root 37 Jul 27 03:31 original
[root@localhost conf]#
FreeBSD 11.1 用 pkg 安裝 apache24
主要設定檔 httpd.conf 在此
root@freebsd11:~ # find / -name httpd.conf
/usr/local/etc/apache24/httpd.conf
root@freebsd11:~ #
root@freebsd11:/usr/local/etc/apache24/extra # ls
httpd-autoindex.conf httpd-mpm.conf
httpd-autoindex.conf.sample httpd-mpm.conf.sample
httpd-dav.conf httpd-multilang-errordoc.conf
httpd-dav.conf.sample httpd-multilang-errordoc.conf.sample
httpd-default.conf httpd-ssl.conf
httpd-default.conf.sample httpd-ssl.conf.sample
httpd-info.conf httpd-userdir.conf
httpd-info.conf.sample httpd-userdir.conf.sample
httpd-languages.conf httpd-vhosts.conf
httpd-languages.conf.sample httpd-vhosts.conf.sample
httpd-manual.conf proxy-html.conf
httpd-manual.conf.sample proxy-html.conf.sample
沒有留言:
張貼留言