Default Apache site homepage settings

Source: Internet
Author: User

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:

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.