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. 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... 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. # Options-Indexes ErrorDocument 403/error/noindex.html The descriptive content in the file describes the main functions of the file and the methods 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. ## # Options-Indexes # error document 403/error/noindex.html # 5. restart Apache service httpd restart. note: noindex.html stores 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.