Apache default file layout on different platforms and versions

Source: Internet
Author: User

Https://wiki.apache.org/httpd/DistrosDefaultLayout

This guide lists the default installation layouts for Apache HTTPD on various operating systems and distributions.

While examples in the main Apache HTTP Server documentation assume that is using the standard file layout distributed From apache.org, many Third-party distributors change the layout to conform to local policies. This can make it difficult to follow the examples and to find various important files. Using the information below, you can find where things live on your local install, and compare it to the standard Apache H TTPD paths.

Debian, Ubuntu (Apache httpd 2.x):

ServerRoot::/etc/apache2DocumentRoot::/var/wwwApache Config Files::/etc/apache2/apache2.conf ::/etc/apache2/ports.conf
       
        default VHost Config::/etc/apache2/sites-available/default,/etc/apache2/sites-enabled/000-default
        Module L Ocations::/etc/apache2/mods-available,/etc/apache2/mods-enablederrorlog::/var/log/apache2/error.log  Accesslog::/var/log/apache2/access.logcgi-bin::/usr/lib/cgi-binbinaries (apachectl)::/usr/sbinstart /stop::/etc/init.d/apache2 (Start|stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean) 
       

Notes:
    1. The Debian/ubuntu layout is fully documented in/usr/share/doc/apache2/readme. Debian

    2. Debian/ubuntu use symlinks to configure vhosts and load modules. Configuration files is created in their respective sites-available and mods-available directories. To activate vhosts and modules, Symlinks is created in the respective sites-enabled and mods-enabled directories to the C Onfig files in either sites-available and mods-available. Debian provides scripts to handle this process called ' a2ensite ' and ' a2enmod ' which activates vhosts and modules.

    3. The default vhost is defined In/etc/apache2/sites-available/default, and overrides the DocumentRoot set in the server con Text.

Apache default file layout on different platforms and versions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.