Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours scrolling social media and waste money on things we forget, but won’t spend 30 minutes a day earning certifications that can change our lives.
Master in DevOps, SRE, DevSecOps & MLOps by DevOpsSchool!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Apache: Comprehensive list of Apache HTTP Server configuration directives

Here is a comprehensive list of Apache HTTP Server configuration directives you might encounter in httpd.conf and included config files (like extra/httpd-vhosts.conf, extra/httpd-ssl.conf, etc). Apache has hundreds of directives—here are the most common and important ones, grouped by function. (For a complete official list, see: Apache Directives Index)


Core Server Directives

  • ServerName
  • ServerAlias
  • ServerAdmin
  • DocumentRoot
  • Listen
  • User
  • Group
  • PidFile
  • Timeout
  • KeepAlive
  • KeepAliveTimeout
  • MaxKeepAliveRequests
  • ServerTokens
  • ServerSignature
  • ServerRoot
  • HostnameLookups
  • LimitRequestBody
  • LimitRequestFields
  • LimitRequestFieldSize
  • LimitRequestLine

Directory and File Handling

  • DirectoryIndex
  • Options
  • AllowOverride
  • Require
  • Order (legacy)
  • Allow (legacy)
  • Deny (legacy)
  • AccessFileName
  • Files
  • Directory
  • Location
  • Alias
  • ScriptAlias
  • IndexOptions
  • IndexIgnore
  • Redirect
  • RedirectMatch

Logging

  • ErrorLog
  • CustomLog
  • LogLevel
  • LogFormat

Modules and Extensions

  • LoadModule
  • AddModule (legacy)
  • Include
  • TypesConfig
  • AddType
  • AddHandler
  • AddOutputFilter
  • AddInputFilter
  • AddLanguage
  • AddCharset
  • AddEncoding
  • AddIcon
  • AddDescription

Performance and Connection Handling

  • StartServers
  • MinSpareServers
  • MaxSpareServers
  • MaxClients (legacy; use MaxRequestWorkers)
  • MaxRequestWorkers
  • MaxConnectionsPerChild
  • ThreadsPerChild
  • ThreadLimit
  • ServerLimit

Security and Access Control

  • Require
  • AuthType
  • AuthName
  • AuthUserFile
  • AuthGroupFile
  • AuthBasicProvider
  • AllowOverride
  • SSLProtocol
  • SSLCipherSuite
  • SSLCertificateFile
  • SSLCertificateKeyFile
  • SSLCertificateChainFile
  • SSLEngine
  • SSLVerifyClient
  • SSLVerifyDepth
  • SSLProxyEngine

Virtual Hosting

  • VirtualHost
  • NameVirtualHost
  • UseCanonicalName
  • ServerAlias
  • ServerAdmin
  • DocumentRoot
  • ErrorLog
  • CustomLog
  • SSLEngine (for SSL vhosts)

Proxy and Reverse Proxy

  • ProxyRequests
  • ProxyPass
  • ProxyPassReverse
  • ProxyPreserveHost
  • ProxyTimeout
  • ProxyAddHeaders
  • ProxyVia
  • ProxyPassMatch

URL Rewriting

  • RewriteEngine
  • RewriteCond
  • RewriteRule
  • RewriteBase
  • RewriteMap

MIME Types and Content Handling

  • TypesConfig
  • DefaultType
  • AddType
  • AddEncoding
  • AddLanguage
  • AddCharset

Other Useful Directives

  • SetEnv
  • PassEnv
  • UnsetEnv
  • Header
  • RequestHeader
  • SetHandler
  • ScriptAlias
  • ScriptAliasMatch
  • ScriptInterpreterSource
  • SuexecUserGroup

Legacy and Deprecated Directives

(Some older directives are still seen in configs, though they’re deprecated)

  • Order
  • Allow
  • Deny
  • NameVirtualHost
  • MaxClients

How to Get the Full List on Your Server

You can get a list of all directives supported by your current Apache install with:

apachectl -L

or

httpd -L

This prints all recognized directives with a brief description.


Official Full List (by Module)

For the complete and always up-to-date list, see:
👉 https://httpd.apache.org/docs/current/mod/directives.html


Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x