Disable Apache test page under CentOS

Source: Internet
Author: User

Disable the Apache test page under CentOS. After apache is installed and started in CentOS, CentOS adds a test page for Apache by default. After the installation is complete and the default configuration is maintained for Apache, enter the domain name or IP address of your site in the browser. The browser will open the following interface to test whether the Apache server works properly. To disable the test page, follow these steps: 1. open the terminal and log on to CentOS 2. enter the following command cd/etc/httpd/conf in the terminal. d3. run the following command to display the file ls4. in the current directory, locate the file named welcome. conf file, and use vim to open vim welcome. confwelcome. the conf content is as follows # This configuration file enables the default "Welcome" # page if there is no default index page present for # the root URL. to disable the Welcome page, comment # out all the lines below. # <LocationMatch "^/+ $"> Options-Indexes ErrorDocument 403/er The descriptive content in the ror/noindex.html </LocationMatch> file describes the main role of the file and how to disable it. In fact, this file is also a common configuration file and is included in the Apache Server httpd. in the main conf file, you only need to use "#" to add the welcome. the conf content can be commented out as follows: # This configuration file enables the default "Welcome" # page if there is no default index page present for # the root URL. to disable the Welcome page, comment # out all the lines below. # <LocationMatch "^/+ $"> # Options-Indexes # ErrorDocument 403/error/noindex.html # </LocationMatch> 5. restart Apache service httpd restart. Note: Using noindex.html to store lujin cd/var/www/error/ls

Related Article

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.