PDA

View Full Version : Server_protocol 環境変数の値が Included


deq
2002/03/25, 02:49 PM
x10 サーバを使用しています.

環境変数 SERVER_PROTOCOL が INCLUDED なんですが,
これはこういうものなんでしょうか?
なぜ INCLUDED なのかがよくわからないのですが...
.cgi や .pl を .xcg に変更すると HTTP/1.1 になるのもよくわかりません.
(要望を出したら変更してくれる?)

というのも,Perl の CGI モジュールにおいて,
$cgi_object->url() などがこれを参照していて,
既存の配布 CGI プログラムにおいて included:// という URL を
吐くのが少なからず見つかるのです.

皆様はどのような対策をとられているのでしょうか?
各プログラム毎に対応するのは面倒なので,
各プログラムに依存しないような設定変更があればいいのですが...

deq
2002/03/27, 07:43 AM
Lincoln Stein 氏に以下のメールを送りました.

On a server, I get "included://www ..." value when called CGI.pm's url() func.
I looked at the source, and it happens because my rental server is setting SERVER_PROTOCOL to "INCLUDED". I searched the web and I found that "INCLUDED" would be set when it's called as SSI, but I called it as CGI, so maybe my server is broken or doing unexpected thing...
Though, the "included://" url is not user's expecting thing (I think), so I suggest the CGI.pm returns "http://" url when the SERVER_PROTOCOL env is set to "INCLUDED".

すると

> I didn't know about that. It sounds like a nonstandard use of
> SERVER_PROTOCOL.
>
> I'll fix that the way you suggest.

とのことです.