私が持っているinets構成ファイルは次のとおりです。
[{port, 443},
{server_name, "example.com"},
{server_root, "./root/"},
{document_root, "./htdocs/"},
{socket_type, {essl, [{certfile, "/etc/letsencrypt/live/example.com/cert.pem"}, {keyfile, "/etc/letsencrypt/live/example.com/privkey.pem"}]}},
{directory_index, ["index.html"]},
{erl_script_alias, {"/erl",[functions]}},
{erl_script_nocache, true},
{script_alias, {"/cgi-bin/", "/home/example/site/cgi-bin/"}},
{script_nocache,true}
].
この構成ファイルを使用すると、次の場所にアクセスできます。
https://example.com/cgi-bin/something.cgi
and
https://example.com/erl/functions/function
{script_alias, {"/cgi-bin/"...を{script_alias, {"/"...に変更すると、 から CGIスクリプトにアクセスできるようになることは既に知っていますが、どうすればerl_script_aliashttps://example.com/
で同じ動作を得ることができますか? 例: ?へのアクセスとアクセスの取得https://example.com/
/erl/functions/function