Default Apache site homepage settings
The first page of apache's homepage is index.html. When we need to change the homepage file or add a homepage file, we can add the configuration statement to the httpd. conf file.
The default configuration statement of the httpd. conf homepage file is as follows:
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
If the principal wants to add the first page file xxx.htm, you can add a line of statement DirectoryIndex xxx.htm under DirectoryIndex index.html, with the priority from top to bottom.
For example, if I add the index.htm1_defaul.htm and index. php files to my workshop, the configuration statement must be changed:
<IfModule dir_module>
DirectoryIndex index.html
DirectoryIndex index.htm
DirectoryIndex default.htm
DirectoryIndex index. php
</IfModule>
Save the changes. Restart Apache before the changes take effect.
Install a Web Server on Ubuntu Server 14.04 (Linux + Apache + MySQL + PHP)
Install and configure the PHP environment in Linux (Apache2)
Install the LAMP \ Vsftpd \ Webmin \ phpMyAdmin service and settings in Ubuntu 13.04
Compile and install LAMP in CentOS 5.9 (Apache 2.2.44 + MySQL 5.6.10 + PHP 5.4.12)
Source code for Web server architecture in RedHat 5.4 build the LAMP environment and application PHPWind
Apache details: click here
Apache: click here
This article permanently updates the link address: