Skip to content

Parmlib: Rename CGI= to MOD= with simplified syntax#64

Merged
mgrossmann merged 2 commits intomainfrom
issue-63-parmlib-mod-keyword
Apr 13, 2026
Merged

Parmlib: Rename CGI= to MOD= with simplified syntax#64
mgrossmann merged 2 commits intomainfrom
issue-63-parmlib-mod-keyword

Conversation

@mgrossmann
Copy link
Copy Markdown
Contributor

Fixes #63

Summary

  • New MOD= Parmlib keyword; when no pattern follows, HTTPD auto-derives *.<lowercase program> (so MOD=LUA*.lua, MOD=REXX*.rexx).
  • CGI= kept as deprecated alias emitting HTTPD410W CGI= is deprecated, use MOD= instead.
  • samplib/httpprm0 updated to new syntax.

Test plan

  • Tested on live MVS (user-confirmed)
  • Legacy CGI= lines still register modules and log deprecation warning

Introduce MOD= as the new Parmlib keyword for registering modules.
When no pattern follows the program name, HTTPD auto-derives
*.<lowercase program> so scripting modules can be configured with
a single token:

    MOD=LUA    -> *.lua
    MOD=REXX   -> *.rexx

Explicit patterns still work for URL prefix routing:

    MOD=MVSMF /zosmf/*
    MOD=HTTPDSRV /.dsrv

CGI= is kept as a deprecated alias that emits HTTPD410W so existing
configurations keep working through the 4.0.0 transition.

Fixes #63
Align README, configuration, development and migration docs with the
new MOD= Parmlib keyword and simplified scripting-module syntax.
@mgrossmann mgrossmann merged commit 4a5b2b4 into main Apr 13, 2026
1 check failed
@mgrossmann mgrossmann deleted the issue-63-parmlib-mod-keyword branch April 13, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parmlib: Rename CGI= to MOD= with simplified syntax

1 participant