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