1.The Debian/Ubuntu layout is fully documented in /usr/share/doc/apache2/README.Debian
2.Debian/Ubuntu use symlinks to enable vhosts and modules. Configuration files are created in their respective sites-available and mods-available directories. To activate vhosts and modules, symlinks are created in the respective sites-enabled and mods-enabled directories to the config files in either sites-available and mods-available. Debian provides scripts to handle this process called ‘a2ensite’ and ‘a2enmod’ which enables vhosts and modules.
3.The default DocumentRoot is specified in the default vhost config file, /etc/apache2/sites-available/default
Notes:
1.There is an extra config file in /etc/sysconfig/httpd which can be used to change to the worker mpm /usr/sbin/httpd.worker.
2.Extra config files named *.conf are loaded from /etc/httpd/conf.d. This directory is used by packages like mod_python for drop-in configs
3.If you’re having issues with authorization and your permissions are correct make sure that you try testing with SELinux turned off. Run ‘setenforce 0′ and use ‘chcon’ to fix permissions. Run ‘ls -alZ’ to view the current permissions.’ SELinux first appeared in Fedora Core 3, RHEL 4, and CentOS 4.
RedHat 9.0 and older:
ServerRoot :: /etc/httpd
Primary Config Fle :: /etc/httpd/conf/httpd.conf
DocumentRoot :: /var/www/html
ErrorLog :: /var/log/httpd/error_log
AccessLog :: /var/log/httpd/access_log
cgi-bin :: /var/www/cgi-bin (empty and disabled by default)
1.apachectl graceful is equivalent to apachectl restart and doesn’t keep running connections alive. Similarly, graceful-stop is not graceful.
2.The /usr/sbin/envvars script is ineffective for setting environment variables. See
http://lists.apple.com/archives/web-dev/2008/Apr/msg00059.html
Mac OS X (Tiger and earlier, Apache 1.3):
ServerRoot :: /usr
Primary Config Fle :: /etc/httpd/httpd.conf
DocumentRoot :: /Library/WebServer/Documents
ErrorLog :: /var/log/httpd/error_log
AccessLog :: /var/log/httpd/access_log
cgi-bin :: /Library/WebServer/CGI-Executables (empty by default)
1.The “apache” script must be copied from the installation default /usr/pkg/share/examples/rc.d to /etc/rc.d (for automatic rc.conf usage) or /usr/pkg/etc/rc.d (for advanced usage).
1.Other variables to insert in rc.conf are listed in the comments at the top of the start/stop script
2.To start 2.2 on freebsd 6.1 the accf_http kernel module must be loaded. To do this once, run kldload accf_http . To do so at boot time, add accf_http_load=”YES” to /boot/loader.conf
3.Apache 2.2.6 in the FreeBSD 6.2 release will start regardless of the accf_http kernel module being loaded, and by default doesn’t use it. To reverse this, add apache22_http_accept_enable=”YES” to /etc/rc.conf (which will cause the kernel module to be loaded and Apache to use it).
1.Config needs to be copied from example file to httpd.conf.
2.Apache-1.3 is the default installation in /etc/init.d and /etc/rc3.d files. Also Apache Tomcat is included in 1.3 installation.
Slackware 10.1, 10.2 and 11.0 (Apache 1.3):
ServerRoot :: /usr
DocumentRoot :: /var/www/htdocs
AccessLog :: /var/log/apache/access_log
ErrorLog :: /var/log/apache/error_log
binaries (apachectl) :: /usr/sbin
modules :: /usr/libexec/apache
system startup script :: /etc/rc.d/rc.httpd (start|stop|restart|graceful)
Apache config file :: /etc/apache/httpd.conf
mod_ssl config file :: /etc/apache/mod_ssl.conf
php config file :: /etc/apache/mod_php.conf
cgi-bin :: /var/www/cgi-bin
on-line docs ("manual") :: /var/www/htdocs/manual
proxy cache :: /var/cache/proxy
复制代码
Slackware 12.0 (Apache 2.2):
ServerRoot :: /usr
DocumentRoot :: /svr/httpd/htdocs
AccessLog :: /var/log/httpd/access_log
ErrorLog :: /var/log/httpd/error_log
binaries (apachectl) :: /usr/sbin
modules :: /usr/lib/httpd
system startup script :: /etc/rc.d/rc.httpd (start|restart|graceful|graceful-stop|stop)
1.Modules are enabled in /etc/sysconfig/apache2 which is read by the startup script. The a2enmod/a2dismod tool can be used to activate/deactivate modules.
2.See /usr/share/doc/packages/apache2/README.SUSE for more information.