Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Which is the main configuration file for apache

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces which is the main configuration file of apache, which can be used for reference. Friends who need it can refer to it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

Apache's main configuration file is / etc/httpd/conf/httpd.conf;Apache server configuration information is stored in the main configuration file httpd.conf, this file contains a lot of content, using the wc command to count a total of 1009 lines, most of which are comment lines starting with #.

[root@justin ~] # wc-l / etc/httpd/conf/httpd.conf 1009 / etc/httpd/conf/httpd.conf [root@justin ~] #

The configuration file consists of three parts:

[root@justin ~] # grep'\'/ etc/httpd/conf/httpd.conf-n 33 Section: # Section 1: Global Environment 245 Section # Section 2: 'Main' server configuration 973 etc/httpd/conf/httpd.conf 3: Virtual Hosts [root@justin ~] #

Parsing:

1) Global Environment--- global environment configuration to determine the global parameters of the Apache server

2), Main server configuration--- master service configuration, which is equivalent to the default Web site in Apache. If there is only one site in our server, we just need to configure it here.

3), Virtual Hosts--- virtual host. Virtual host cannot coexist with Main Server master server. When virtual host is enabled, Main Server cannot be used.

Thank you for reading this article carefully. I hope the editor will share which content of the main configuration file of apache is helpful to everyone. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report