summaryrefslogtreecommitdiffstats
path: root/rubbos/app/httpd-2.0.64/build/mkconfNW.awk
diff options
context:
space:
mode:
authorhongbotian <hongbo.tianhongbo@huawei.com>2015-11-30 01:45:08 -0500
committerhongbotian <hongbo.tianhongbo@huawei.com>2015-11-30 01:45:08 -0500
commite8ec7aa8e38a93f5b034ac74cebce5de23710317 (patch)
treeaa031937bf856c1f8d6ad7877b8d2cb0224da5ef /rubbos/app/httpd-2.0.64/build/mkconfNW.awk
parentcc40af334e619bb549038238507407866f774f8f (diff)
upload http
JIRA: BOTTLENECK-10 Change-Id: I7598427ff904df438ce77c2819ee48ac75ffa8da Signed-off-by: hongbotian <hongbo.tianhongbo@huawei.com>
Diffstat (limited to 'rubbos/app/httpd-2.0.64/build/mkconfNW.awk')
-rw-r--r--rubbos/app/httpd-2.0.64/build/mkconfNW.awk105
1 files changed, 105 insertions, 0 deletions
diff --git a/rubbos/app/httpd-2.0.64/build/mkconfNW.awk b/rubbos/app/httpd-2.0.64/build/mkconfNW.awk
new file mode 100644
index 00000000..dcfd93d6
--- /dev/null
+++ b/rubbos/app/httpd-2.0.64/build/mkconfNW.awk
@@ -0,0 +1,105 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+BEGIN {
+
+ A["ServerRoot"] = "SYS:/APACHE2"
+ A["Port"] = "80"
+ A["cgidir"] = "cgi-bin"
+ A["logfiledir"] = "logs"
+ A["htdocsdir"] = "htdocs"
+ A["sysconfdir"] = "conf"
+ A["iconsdir"] = "icons"
+ A["manualdir"] = "manual"
+ A["runtimedir"] = "logs"
+ A["errordir"] = "error"
+ A["proxycachedir"] = "proxy"
+
+ B["htdocsdir"] = A["ServerRoot"]"/"A["htdocsdir"]
+ B["iconsdir"] = A["ServerRoot"]"/"A["iconsdir"]
+ B["manualdir"] = A["ServerRoot"]"/"A["manualdir"]
+ B["errordir"] = A["ServerRoot"]"/"A["errordir"]
+ B["proxycachedir"] = A["ServerRoot"]"/"A["proxycachedir"]
+ B["cgidir"] = A["ServerRoot"]"/"A["cgidir"]
+ B["listen_stmt_1"] = "Listen "A["Port"]
+ B["listen_stmt_2"] = ""
+}
+
+/@@LoadModule@@/ {
+ print "#LoadModule auth_anon_module modules/authanon.nlm"
+ print "#LoadModule auth_dbm_module modules/authdbm.nlm"
+ print "#LoadModule auth_digest_module modules/digest.nlm"
+ print "#LoadModule cern_meta_module modules/cernmeta.nlm"
+ print "#LoadModule dav_module modules/mod_dav.nlm"
+ print "#LoadModule dav_fs_module modules/moddavfs.nlm"
+ print "#LoadModule expires_module modules/expires.nlm"
+ print "#LoadModule ext_filter_module modules/extfiltr.nlm"
+ print "#LoadModule file_cache_module modules/filecach.nlm"
+ print "#LoadModule headers_module modules/headers.nlm"
+ print "#LoadModule info_module modules/info.nlm"
+ print "#LoadModule log_forensic_module modules/forensic.nlm"
+ print "#LoadModule logio_module modules/modlogio.nlm"
+ print "#LoadModule mime_magic_module modules/mimemagi.nlm"
+ print "#LoadModule proxy_module modules/proxy.nlm"
+ print "#LoadModule proxy_connect_module modules/proxycon.nlm"
+ print "#LoadModule proxy_http_module modules/proxyhtp.nlm"
+ print "#LoadModule proxy_ftp_module modules/proxyftp.nlm"
+ print "#LoadModule rewrite_module modules/rewrite.nlm"
+ print "#LoadModule speling_module modules/speling.nlm"
+ print "#LoadModule status_module modules/status.nlm"
+ print "#LoadModule unique_id_module modules/uniqueid.nlm"
+ print "#LoadModule usertrack_module modules/usertrk.nlm"
+ print "#LoadModule version_module modules/modversion.nlm"
+ print "#LoadModule vhost_alias_module modules/vhost.nlm"
+ print ""
+ next
+}
+
+match ($0,/@@.*@@/) {
+ s=substr($0,RSTART+2,RLENGTH-4)
+ sub(/@@.*@@/,A[s],$0)
+}
+
+match ($0,/@rel_.*@/) {
+ s=substr($0,RSTART+5,RLENGTH-6)
+ sub(/@rel_.*@/,A[s],$0)
+}
+
+match ($0,/@exp_.*@/) {
+ s=substr($0,RSTART+5,RLENGTH-6)
+ sub(/@exp_.*@/,B[s],$0)
+}
+
+match ($0,/@nonssl_.*@/) {
+ s=substr($0,RSTART+8,RLENGTH-9)
+ sub(/@nonssl_.*@/,B[s],$0)
+}
+
+{
+ print
+}
+
+
+END {
+ print
+ print "#"
+ print "# SecureListen: Allows you to securely bind Apache to specific IP addresses "
+ print "# and/or ports."
+ print "#"
+ print "# Change this to SecureListen on specific IP addresses as shown below to "
+ print "# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)"
+ print "#"
+ print "#SecureListen 443 \"SSL CertificateDNS\""
+}