First, modify the Apache default Site Directory
After the Apache HTTP server is installed, the default site directory is located in the Htdocs folder under its installation directory, and the default home page is the index.html file for that folder.
One, Apache main configuration file CommentApache master configuration file:/etc/httpd/conf/httpd.confDefault site home directory:/var/www/html/Apache server configuration information is stored in the main configuration
One, Apache main configuration file CommentApache master configuration file:/etc/httpd/conf/httpd.confDefault site home directory:/var/www/html/Apache server configuration information is stored in the main configuration
Yesterday, Chi Ming tried to change the default Web site root folder of Apache, found that the Web page does not appear. Theoretically, it can be changed, because I have never had such an idea, and I have not explored too much at that time. Just now,
Because the lab blog system has collapsed, so consider to rebuild the blog system, first encountered a problem is that the original blog system is installed on the top of a stand-alone disk, not installed on the system disk, however, the general
First, modify the Apache default Site DirectoryAfter the Apache HTTP server is installed, the default site directory is located in the Htdocs folder under its installation directory, and the default home page is the index.html file for that folder.
How to modify Apache the default Site directory
(Author: Ewin.) Original, reprint, quote, extract please indicate the source)
Note: This article takes the Apache HTTP Server 2.2.6 as an example. About the specific installation of the Apache HTTP
Apache Default Site Directory settings
The Apache Default Web site Directory is in/var/www/html, we now want to change the site directory to/home/wwwroot/web1/htdocs, the following actions
To create a directory:Cd/homemkdir wwwrootCD Wwwrootmkdir
A profile controls all aspects of the server, so the three files need to be set up to run the server properly.
In addition to these three settings files, Apache uses the Mime.types file to identify different files
The corresponding MIME type, the
Configuration files control all aspects of the server, so you need to set these three files for normal operation of the server.
In addition to these three settings files, Apache uses the mime. types file to identify different files.For the
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.