It works!

This is the default welcome page used to test the correct operation of the Apache2 server after installation on Debian systems. If you can read this page, it means that the Apache HTTP server installed at this site is working properly. You should replace this file (located at /var/www/html/index.html) before continuing to operate your HTTP server.

If you are a normal user of this web site and don't know what this page is about, this probably means that the site is currently unavailable due to maintenance. If the problem persists, please contact the site's administrator.

Configuration Overview

Debian's Apache2 default configuration is different from the upstream default configuration, and split into several files optimized for interaction with Debian tools. The configuration system is fully documented in /usr/share/doc/apache2/README.Debian.gz. Refer to this for the full documentation. Documentation for the web server itself can be found by accessing the manual if the apache2-doc package was installed on this server.

The configuration layout for an Apache2 web server installation on Debian systems is as follows:

iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiS5&#HAAGh99hh99hh9hMXiSiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiiiiiiiiiSi5h&&A&AA&hhhhhhhhhhhhhhhhh9hhB35SSiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiiiiiSSSH&hhhhGAh9hhhhhhhhhhhhhhhhhhhhhhhhh99AASiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiiiSSGGhhhGGGGhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh9hHiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiiS&9hhhhGGGGhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh9hHsiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiihhhhhhhhhGhGhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhGSiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiSX9hhhhhhhhhhhGGGhhhhhhhhhhhhh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;hAAAXGHHHHA&GGGGGGGGGGGG&&GGGGGGHSiiiiiiiiiiiiiiiiiiiiiiii
iiiSHi3Gh&HG&AHH&HiSX3hhXisr:.,:::::r:r;::;::rrsG&99H32G&iAHHHHH&GGGGGGGGGGG&&G&&G&GBiiiiiiiiiiiiiiiiiiiiiiiii
iiii2SGHh&H&AAHH&A5AH5BA&A&X3s;:::::::::::::ssr25S::ri9AHAGHHHHHAA&GGGGGGGGG&A&&&&GGHiiiiiiiiiiiiiiiiiiiiiiiii
iiiSiiGMGGB&BHHH9HBii9&GA&h3H5;::::::::::::sssrr;::::::sSshAHHHHHHGGGGGGGGG&AA&A&&G&Hiiiiiiiiiiiiiiiiiiiiiiiii
iiiXiihBAGHGBHAH5AShiih99hXh.r,::::::::::::;sis:r5S;;::;ssAG&HHHHHGGGGG&&&G&AA&&&&&H&iiiiiiiiiiiiiiiiiiiiiiiii
iii5iiGGHGH&HBrAiArhGS:s2rXX;;::::::::::::::::sM5SAHAM;;:shi&HHHHH9GG&&&&&&&3&&&&&&MG2iiiiiiiiiiiiiiiiiiiiiiii
iiiii2B5B&BHBMSiA&ss;sr;;rsss:::::::::::::::;i2ssBGGGGGH;sish&HHAH&5A&&&&&&XA&&AA&&MG&iiiiiiiiiiiiiiiiiiiiiiii
iiiii&#SAAABAM&rsrs;:::::::::::::::::::::::::;srrG9G&h3&rBXsS5iHAAhGhG&&&&X&B&&&&&&#AMiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiBiiMAHGBA;;:G;::::::::::::::::::::::::ss;s,r22XXX,,.A2sss9AAGG&&5&G9&&B&&&&&A#MMSiiiiiiiiiiiiiiiiiiiiiii
iiiiSiiSiMAHAHB;r;:r;:::::::::::;:::::::::::rsssr,5h;:.ii5;;;rssG9GGGGH2&&&AH&&&&&A#AMiiiiiiiiiiiiiiiiiiiiiiii
iiiii2iiiXH&HHB2r;:,:;:::::::;;;;::::::::::::::::;;;;:r;rr;;;;ss5iGGGA2A2A&Hr3&&&A&BSBi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iiiiiiii
iiiiiiiiiiiiiiiiiiiiiiiSH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;355S55S3&&H&A&Mr&BBHHX&Siiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiiiiisB35r;;;;;;;;;;;;;;;;;;;;;;;;;;;;h355SSSSSSG&&AAG&r,h2&@hA5iiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiii235555S&s;;;;;;;;;;;;;;;;;;;;s395S5S5SSiiiS55A&AAA&H:::&;sr5iiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiSB55555555SXsrrr;;;;;r;rrsXh32SSSS5S5SSisrsSSS4A&HA&&h:::;;i;;Aiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiihS55555555555SAGhGGh323S55S5555SSS5SSsisssiiSS&A&AA&H::::,,,,,,,Xiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiii55555555555555255555555X55SSSSSS55Siiisssiis5S&AAAAH3::::,,,,,,,,9iiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiih5555555555555S555555555525SSSS55Siiisssssisi55AAH&HG;:::::,,,,,,,,;SSiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiii5555555555555s5SSSSSS5555559SSSiiiisssssrisrSS&H&&AH5::::::::,,,,,,,:5Siiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiih55555555555SS5SSSSSSiiiiiSSishrrssssss;;ss;rS5BBH&HX::::::::::,,,,,,,:#2iiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiii355555555SS5SiiiiiiiiiiiiiiSissshr;;;::;;s;:S5ABHAAH:::::::::::::,,,,:.,Xhiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiii2255555SSSSiXriiisssssssiiiiissssh:;:::;r;;rSSBHHAA:;:::::::::::,,:,.s,,::BiSiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiii555555SSSSii2sisssssssssiiiiiss:;;;;::;s;;:iSHHBA9:::::::::::::::r,:,,,,,,:Hiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiSi5555SSSSSiiiRsssssssssiiiiiiis;;;;;;;;r;;:;SSBHB;r::::::::::::;;,2::,,,,,,,,Hiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiSSSSSSiiii,isssssssiiii;siiis;:;;;:;;:::iSBHHrr:::::::::::::r;,;::::,::,,,:Giiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiShsssSSiiiii2:5sssssssss;;;;siiii;;::;;;;siiBG3:rrrr;;;;;:::::::;:::::::,:,,,,,siiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiS;rrrrrii9sS:2issr;rr;;;;;;;sissr;::rsssisA3r:;;;::::::::::;::;::::::::,::,,,,9iiiiiiiiiiiiiii
iiiiiiiiiiiiiiiii#;;;;;;ris9s:3sssr;;;;;;;;::::;::::siss;25;:::::::::::::::,,X9::::::::::::,,,,#Siiiiiiiiiiiii
iiiiiiiiiiiiiiiiii;;;;;;;rsXi;Xsssr;;;;;;;;;;;;;;;::;;;;;;;::::::::::::::::2 :;:,,:::::::,:,,,,,Siiiiiiiiiiiii
iiiiiiiiiiiiiiiiii&;;;;;;;i3i;.Xssrr;;;;;;;;;;;;;;;;:;:::::::::::::::::::::5h:r::::::::::,::,,,.9iiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiS;;;;;;;s;:;.,isrrr;;;;;;;;;::::::::::::::::::::::::::::..,i::::::::::::::,,,,,2iiiiiiiiiiii
iiiiiiiiiiiiiiiiiii&;;;;;;s::;,.;5rsr;;;;;;;;;;::::::::::::::::::::::::::Sr:X::::::::::::::::,,,,3iiiiiiiiiiii
					
  • apache2.conf is the main configuration file. It puts the pieces together by including all remaining configuration files when starting up the web server.
  • ports.conf is always included from the main configuration file. It is used to determine the listening ports for incoming connections, and this file can be customized anytime.
  • Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/ directories contain particular configuration snippets which manage modules, global configuration fragments, or virtual host configurations, respectively.
  • They are activated by symlinking available configuration files from their respective *-available/ counterparts. These should be managed by using our helpers a2enmod, a2dismod, a2ensite, a2dissite, and a2enconf, a2disconf . See their respective man pages for detailed information.
  • The binary is called apache2. Due to the use of environment variables, in the default configuration, apache2 needs to be started/stopped with /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not work with the default configuration.
Document Roots

By default, Debian does not allow access through the web browser to any file apart of those located in /var/www, public_html directories (when enabled) and /usr/share (for web applications). If your site is using a web document root located elsewhere (such as in /srv) you may need to whitelist your document root directory in /etc/apache2/apache2.conf.

The default Debian document root is /var/www/html. You can make your own virtual hosts under /var/www. This is different to previous releases which provides better security out of the box.

Reporting Problems

Please use the reportbug tool to report bugs in the Apache2 package with Debian. However, check existing bug reports before reporting a new bug.

Please report bugs specific to modules (such as PHP and others) to respective packages, not to the web server itself.