From a23f2ef2af78b9872ac264ccd458c871306856ed Mon Sep 17 00:00:00 2001
From: Vincent Deffontaines
Note: Multiple DirectoryIndex
- directives within the same context will add
+
Note: Multiple DirectoryIndex
+ directives within the same context will add
to the list of resources to look for rather than replace:
@@ -228,7 +228,7 @@ a directoryindex.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,8 +236,8 @@ a directoryFallbackResource Directive
- Description: Define a default URL for requests that don't map to a file - Syntax: FallbackResource local-url
+ Default: None - httpd will return 404 (Not Found)
+ Syntax: FallbackResource disabled | local-url
Default: disabled - httpd will return 404 (Not Found)
Context: server config, virtual host, directory, .htaccess Override: Indexes @@ -267,11 +267,16 @@ a directory Status: Base 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>diff --git a/docs/manual/mod/mod_dir.xml b/docs/manual/mod/mod_dir.xml index caf5197e33..8adf266e98 100644 --- a/docs/manual/mod/mod_dir.xml +++ b/docs/manual/mod/mod_dir.xml @@ -102,8 +102,8 @@ a directory literally if it has any arguments before or after it, even if they are "disabled" as well. -Note: Multiple
DirectoryIndex - directives within the same context will add +Note: Multiple
DirectoryIndex + directives within the same context will add to the list of resources to look for rather than replace:@@ -215,15 +215,15 @@ a 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.
FallbackResource Define a default URL for requests that don't map to a file -FallbackResource local-url -None - httpd will return 404 (Not Found) +FallbackResource disabled | local-url +disabled - httpd will return 404 (Not Found) server config virtual host directory .htaccess Indexes @@ -250,11 +250,16 @@ a directoryExisting 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> -- 2.40.0