• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 145
  • Last Modified:

Apache httpd.conf file sections. How is this file divided into sections?

How is the httpd.conf file broken up?

By looking at examples, I cannot tell where in an httpd.conf file one section starts and another starts.  I understand that the global section is different from other sections.  The global section can be the place to have some settings.  I believe there are distinct sections.  Are these sections discrete and marked in the file?

Is a container merely everything from the beginning of a word in <> to its closing tag?  Would this be a container?
<Directory>  various info </Directory>

Open in new window

?  

Is a directive an assignment?  Do Apache directives in httpd.conf files go into containers necessarily?
0
Phil Davidson
Asked:
Phil Davidson
  • 3
  • 3
2 Solutions
 
Dave BaldwinFixer of ProblemsCommented:
This page http://httpd.apache.org/docs/2.4/configuring.html describes the 'httpd.conf' file.  "httpd configuration files contain one directive per line."  Apache calls things like <Directory>  various info </Directory> sections.  And there are a lot of thing that do not go in sections like that but are individual directives that apply to the whole server or just some special function.

Apache can be a little complicated.  It would help to read through that page and then some of the links there for more info.
0
 
Phil DavidsonAuthor Commented:
What is a container in the context of httpd.conf files?
0
 
Dave BaldwinFixer of ProblemsCommented:
Never heard of that.  Where did you see that?
0
When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot has fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

 
Phil DavidsonAuthor Commented:
0
 
Dave BaldwinFixer of ProblemsCommented:
Never saw that page before.  But I think you just answered your own question.
0
 
Phil DavidsonAuthor Commented:
I found a link that had the correct info.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now