category      articles    
 
Adsense
Adwords
Article
Blog
CMS
CSS Style
Datacenter
Design Graphics
Flash Animation
Internet Radio
Messenger
Programming
Provider
Search Engine
Security
Security Web
SEF
SEO
Software
Software Web
AccessConfig directive for Apache

- AccessConfig directive
Syntax: AccessConfig file-path|directory-path|wildcard-path
Default: AccessConfig conf/access.conf
Context: server config, virtual host
Status: core
Compatibility: The ability to specify a directory, rather than a file name, is only available in Apache 1.3.13 and later. This directive will be eliminated in version 2.0.

The server will read this file for more directives after reading the ResourceConfig file. File-path is relative to the ServerRoot. This feature can be disabled using:

AccessConfig /dev/null

Or, on Win32 servers,

AccessConfig nul

Historically, this file only contained <Directory> sections; in fact it can now contain any server directive allowed in the server config context. However, since Apache version 1.3.4, the default access.conf file which ships with Apache contains only comments, and all directives are placed in the main server configuration file, httpd.conf.

If AccessConfig points to a directory, rather than a file, Apache will read all files in that directory, and any subdirectory, and parse those as configuration files.

Alternatively you can use a wildcard to limit the scope; i.e to only *.conf files.

Note that by default any file in the specified directory will be loaded as a configuration file.

So make sure that you don't have stray files in this directory by mistake, such as temporary files created by your editor, for example.

OTHER ARTICLES

htaccess Useful

ContentDigest directive

PHP and MySQL

AddModule directive for Apache

ClearModuleList directive

Count how many days

AcceptMutex directive for Apache

AddDefaultCharset directive for Apache

Prevent htaccess From Hack 2

AuthAuthoritative directive