summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Bowen <rbowen@apache.org>2003-11-17 02:33:11 +0100
committerRich Bowen <rbowen@apache.org>2003-11-17 02:33:11 +0100
commit4ae7189b5f6b1d9ae15da0021cf215ed60c8f100 (patch)
treecffb7fb88d106da5a0a536b1a8895bd99b69e810
parentSwitch over to the new pollset API. (diff)
downloadapache2-4ae7189b5f6b1d9ae15da0021cf215ed60c8f100.tar.xz
apache2-4ae7189b5f6b1d9ae15da0021cf215ed60c8f100.zip
Unless anyone strenuously objects, I'm adding back the comments
regarding ScriptInterpreterSource. We're getting an increasing number of questions about this. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101802 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--docs/conf/httpd-win.conf38
1 files changed, 38 insertions, 0 deletions
diff --git a/docs/conf/httpd-win.conf b/docs/conf/httpd-win.conf
index 1e2d9d5662..0d452a5327 100644
--- a/docs/conf/httpd-win.conf
+++ b/docs/conf/httpd-win.conf
@@ -470,6 +470,44 @@ ServerTokens Full
#
ServerSignature On
+#
+# Apache parses all CGI scripts for the shebang line by default.
+# This comment line, the first line of the script, consists of the symbols
+# pound (#) and exclamation (!) followed by the path of the program that
+# can execute this specific script. For a perl script, with perl.exe in
+# the C:\Program Files\Perl directory, the shebang line should be:
+
+ #!c:/program files/perl/perl
+
+# Note you _must_not_ indent the actual shebang line, and it must be the
+# first line of the file. Of course, CGI processing must be enabled by
+# the appropriate ScriptAlias or Options ExecCGI directives for the files
+# or directory in question.
+#
+# However, Apache on Windows allows either the Unix behavior above, or can
+# use the Registry to match files by extention. The command to execute
+# a file of this type is retrieved from the registry by the same method as
+# the Windows Explorer would use to handle double-clicking on a file.
+# These script actions can be configured from the Windows Explorer View menu,
+# 'Folder Options', and reviewing the 'File Types' tab. Clicking the Edit
+# button allows you to modify the Actions, of which Apache 1.3 attempts to
+# perform the 'Open' Action, and failing that it will try the shebang line.
+# This behavior is subject to change in Apache release 2.0.
+#
+# Each mechanism has it's own specific security weaknesses, from the means
+# to run a program you didn't intend the website owner to invoke, and the
+# best method is a matter of great debate.
+#
+# To enable the this Windows specific behavior (and therefore -disable- the
+# equivilant Unix behavior), uncomment the following directive:
+#
+#ScriptInterpreterSource registry
+#
+# The directive above can be placed in individual <Directory> blocks or the
+# .htaccess file, with either the 'registry' (Windows behavior) or 'script'
+# (Unix behavior) option, and will override this server default option.
+#
+
#
# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname