Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ここから引用:
内部環境変数を設定します。これは、Apache HTTP Server モジュールで使用可能になり、CGI スクリプトと SSI ページに渡されます。
Apache に直接組み込まれている mod_php や mod_perl でも機能しますか?
perl の場合、PerlSetEnv を使用します。
Apache 設定で:
PerlSetEnv VAR1 value PerlSetEnv VAR2 "value with spaces"
次に、perl コードで、通常どおりにアクセスします。
print STDERR $ENV{VAR1}, "\n";