From: Vincent Deffontaines Note: Multiple DirectoryIndex Directive
@@ -118,32 +118,6 @@ a directory
literally if it has any arguments before or after it, even if they are "disabled"
as well.
- DirectoryIndex
- directives within the same context will add
- to the list of resources to look for rather than replace:
-
-# Example A: Set index.html as an index page, then add index.php to that list as well.
-<Directory /foo>
- DirectoryIndex index.html
- DirectoryIndex index.php
-</Directory>
-
-# Example B: This is identical to example A, except it's done with a single directive.
-<Directory /foo>
- DirectoryIndex index.html index.php
-</Directory>
-
-# Example C: To replace the list, you must explicitly reset it first:
-# In this example, only index.php will remain as an index resource.
-<Directory /foo>
- DirectoryIndex index.html
- DirectoryIndex disabled
- DirectoryIndex index.php
-</Directory>
-
-
-
index.html
file. But a request without trailing slash
would list the directory contents.
Also note that some browsers may erroneously change POST requests into GET +
Also note that some browsers may erroneously change POST requests into GET (thus discarding POST data) when a redirect is issued.
@@ -236,14 +210,12 @@ a directoryDescription: | Define a default URL for requests that don't map to a file |
---|---|
Syntax: | FallbackResource disabled | local-url |
Default: | disabled - httpd will return 404 (Not Found) |
Syntax: | FallbackResource local-url |
Default: | None - httpd will return 404 (Not Found) |
Context: | server config, virtual host, directory, .htaccess |
Override: | Indexes |
Status: | Base |
Module: | mod_dir |
Compatibility: | The disabled argument is available in version
-2.4.4 and later. |
Use this to set a handler for any URL that doesn't map to anything in your filesystem, and would otherwise return HTTP 404 (Not Found). @@ -269,16 +241,11 @@ a directory
Existing files, such as images, css files, and so on, will be served normally.
-Use the disabled
argument to disable that feature
- if inheritance from a parent directory is not desired.
In a sub-URI, such as http://example.com/blog/ this sub-URI has to be supplied as local-url:
<Directory /web/example.com/htdocs/blog> FallbackResource /blog/index.php -</Directory> -<Directory /web/example.com/htdocs/blog/images> - FallbackResource disabled </Directory>@@ -291,27 +258,10 @@ a directory ja | ko | tr -
Note: Multiple
Note: Multiple
index.html
file. But a request without trailing slash
would list the directory contents.
- Also note that some browsers may erroneously change POST requests into GET +
Also note that some browsers may erroneously change POST requests into GET (thus discarding POST data) when a redirect is issued.
disabled
argument is available in version
-2.4.4 and later.Use this to set a handler for any URL that doesn't map to anything in your filesystem, and would otherwise return HTTP 404 (Not Found). @@ -252,16 +250,11 @@ a directory
Existing files, such as images, css files, and so on, will be served normally.
-Use the disabled
argument to disable that feature
- if inheritance from a parent directory is not desired.
In a sub-URI, such as http://example.com/blog/ this sub-URI has to be supplied as local-url: