| (EVar "php72", _) => SOME 72
| (EVar "php73", _) => SOME 73
| (EVar "php74", _) => SOME 74
+ | (EVar "php80", _) => SOME 80
| _ => NONE
fun vhostBody (env, makeFullHost) =
val () = Env.action_one "phpVersion"
("version", php_version)
(fn version => (write "\tAddHandler fcgid-script .php .phtml\n";
- (* FIXME: only set kerberos wrapper of waklog is on *)
- (* won't be trivial, since we don't have access to node here *)
- write "\n\tFcgidWrapper \"";
- write (Config.Apache.fastCgiWrapperOf (Domain.getUser ()));
- write " ";
- write (Config.Apache.phpFastCgiWrapper version);
- write "\" .php .phtml\n"))
+ (* FIXME: only set kerberos wrapper of waklog is on *)
+ (* won't be trivial, since we don't have access to node here *)
+ app (fn ext => (write "\n\tFcgidWrapper \"";
+ write (Config.Apache.fastCgiWrapperOf (Domain.getUser ()));
+ write " ";
+ write (Config.Apache.phpFastCgiWrapper version);
+ write "\" ";
+ write ext;
+ write "\n"))
+ [".php", ".phtml"]))
val () = Env.action_two "addType"
("mime type", Env.string, "extension", Env.string)