From 1b2cc09c0463b5ee9013c36673e75b72a26bf9e6 Mon Sep 17 00:00:00 2001
From: Eric Covener
A request for http://myserver/image/foo.gif
would cause
+
A request for http://example.com/image/foo.gif
would cause
the server to return the file /ftp/pub/image/foo.gif
. Only
complete path segments are matched, so the above alias would not match a
- request for http://myserver/imagefoo.gif
. For more complex
+ request for http://example.com/imagefoo.gif
. For more complex
matching using regular expressions, see the AliasMatch
directive.
Note that if you include a trailing / on the @@ -443,7 +443,7 @@ target as a CGI script ScriptAlias /cgi-bin/ /web/cgi-bin/
-A request for http://myserver/cgi-bin/foo
would cause the
+
A request for http://example.com/cgi-bin/foo
would cause the
server to run the script /web/cgi-bin/foo
. This configuration
is essentially equivalent to:
then a request for then a request for Note that the documents do not need to be relative to the
@@ -113,6 +114,34 @@ a directory
as well.
diff --git a/docs/manual/mod/mod_dir.html.en b/docs/manual/mod/mod_dir.html.en
index af4870c204b..9dfb8f354d8 100644
--- a/docs/manual/mod/mod_dir.html.en
+++ b/docs/manual/mod/mod_dir.html.en
@@ -59,6 +59,7 @@
Directives
@@ -92,8 +93,8 @@ a directory
DirectoryIndex index.html
http://myserver/docs/
would
- return http://myserver/docs/index.html
if it
+ http://example.com/docs/
would
+ return http://example.com/docs/index.html
if it
exists, or would list the directory if it did not.
Description: | Configures an external redirect for directory indexes. + |
---|---|
Syntax: | DirectoryIndexRedirect on | off | permanent | temp | seeother |
+3xx-code
+ |
Default: | DirectoryIndexRedirect off |
Context: | server config, virtual host, directory, .htaccess |
Override: | Indexes |
Status: | Base |
Module: | mod_dir |
By default, the DirectoryIndex
is selected
+ and returned transparently to the client. DirectoryIndexRedirect
causes an external redirect
+ to instead be issued.
+ DirectoryIndexRedirect on
+
A request for http://example.com/docs/
would
+ return a temporary redirect to http://example.com/docs/index.html
+ if it exists.