mkconfNW.awk revision c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncBEGIN {
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync A["ServerRoot"] = "SYS:/APACHE2"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync A["Port"] = "80"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync A["cgidir"] = "cgi-bin"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync A["logfiledir"] = "logs"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync A["htdocsdir"] = "htdocs"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync A["sysconfdir"] = "conf"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync A["iconsdir"] = "icons"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync A["manualdir"] = "manual"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync A["runtimedir"] = "logs"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync A["errordir"] = "error"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync A["proxycachedir"] = "proxy"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync B["htdocsdir"] = A["ServerRoot"]"/"A["htdocsdir"]
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync B["iconsdir"] = A["ServerRoot"]"/"A["iconsdir"]
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync B["manualdir"] = A["ServerRoot"]"/"A["manualdir"]
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync B["errordir"] = A["ServerRoot"]"/"A["errordir"]
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync B["proxycachedir"] = A["ServerRoot"]"/"A["proxycachedir"]
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync B["cgidir"] = A["ServerRoot"]"/"A["cgidir"]
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync}
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync/@@LoadModule@@/ {
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule auth_basic_module modules/authbasc.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule auth_digest_module modules/authdigt.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule authn_anon_module modules/authnano.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule authn_dbm_module modules/authndbm.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule authn_default_module modules/authndef.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule authn_file_module modules/authnfil.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule authz_dbm_module modules/authzdbm.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule authz_default_module modules/authzdef.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule authz_groupfile_module modules/authzgrp.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule authz_user_module modules/authzusr.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule cern_meta_module modules/cernmeta.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule dav_module modules/mod_dav.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule dav_fs_module modules/moddavfs.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule expires_module modules/expires.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule file_cache_module modules/filecach.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule headers_module modules/headers.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule info_module modules/info.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule logio_module modules/modlogio.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule mime_magic_module modules/mimemagi.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule proxy_module modules/proxy.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule proxy_connect_module modules/proxycon.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule proxy_http_module modules/proxyhtp.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule proxy_ftp_module modules/proxyftp.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule rewrite_module modules/rewrite.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule speling_module modules/speling.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule status_module modules/status.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule unique_id_module modules/uniqueid.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule usertrack_module modules/usertrk.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print "#LoadModule vhost_alias_module modules/vhost.nlm"
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync print ""
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync next
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync}
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncmatch ($0,/@@.*@@/) {
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync s=substr($0,RSTART+2,RLENGTH-4)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync sub(/@@.*@@/,A[s],$0)
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync}
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsync
14ea49401f3c8c61422aefbda43809e275f60c6cvboxsyncmatch ($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)
}
{
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 CertificateIP\""
}