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

Posted on 2014-12-05
Last Modified: 2014-12-16
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?
Question by:Phil Davidson
  • 3
  • 3
LVL 83

Accepted Solution

Dave Baldwin earned 500 total points
ID: 40484336
This page 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.

Author Comment

by:Phil Davidson
ID: 40485123
What is a container in the context of httpd.conf files?
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40485155
Never heard of that.  Where did you see that?
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.


Assisted Solution

by:Phil Davidson
Phil Davidson earned 0 total points
ID: 40495411
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40495415
Never saw that page before.  But I think you just answered your own question.

Author Closing Comment

by:Phil Davidson
ID: 40502252
I found a link that had the correct info.

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Tech Writing Terminology - Pane or Panel? 8 101
WEB Service vs ??? 7 122
Free runner service software 2 111
Does it make sense migrate a website to MIcrosoft Azure 4 59
Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This video teaches users how to migrate an existing Wordpress website to a new domain.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question