[Mono-list] Server variables
nelson
nelson <kascote@gmail.com>
Mon, 18 Apr 2005 12:25:36 -0300
Hi,=20
I'm playing with ServerVariablesCollection.cs to make it more Apache friend=
ly,
and I'm having some trouble retrieving some values. I follow the
problem to mod_mono and now i'm stuck.
The problem is I can retrieve somo values and not others. I add some debug =
code
to mod_mono to print the variables values and got this log snip:
---8<------------------------------
[Fri Apr 15 18:09:57 2005] [warn] Command received: GET_SERVER_VARIABLE
[Fri Apr 15 18:09:57 2005] [warn] GATEWAY_INTERFACE
[Fri Apr 15 18:09:57 2005] [warn] Command received: GET_SERVER_VARIABLE
[Fri Apr 15 18:09:57 2005] [warn] HTTPS
[Fri Apr 15 18:09:57 2005] [warn] on
[Fri Apr 15 18:09:57 2005] [warn] Command received: GET_SERVER_VARIABLE
[Fri Apr 15 18:09:57 2005] [warn] SSL_CIPHER_USEKEYSIZE
[Fri Apr 15 18:09:57 2005] [warn] 256
[Fri Apr 15 18:09:57 2005] [warn] Command received: GET_SERVER_VARIABLE
[Fri Apr 15 18:09:57 2005] [warn] HTTPS_SECRETKEYSIZE
[Fri Apr 15 18:09:57 2005] [warn] Command received: GET_SERVER_VARIABLE
[Fri Apr 15 18:09:57 2005] [warn] INSTANCE_ID
[Fri Apr 15 18:09:57 2005] [warn] Command received: GET_SERVER_VARIABLE
[Fri Apr 15 18:09:57 2005] [warn] INSTANCE_META_PATH
[Fri Apr 15 18:09:57 2005] [warn] Command received: GET_SERVER_VARIABLE
[Fri Apr 15 18:09:57 2005] [warn] SERVER_SOFTWARE
[Fri Apr 15 18:09:57 2005] [warn] Command received: GET_SERVER_VARIABLE
---8<------------------------------
mod_mono retrive HTTPS variable but not GATEWAY_INTERFACE, or retrieve
SSL_CIPHER_USEKEYSIZE
but not SERVER_SOFTWARE.
GATEWAY_INTERFACE and SERVER_SOFTWARE are standard variables and I can
retrieve it with PHP for example with the same configuration.
I have the following configuration in Apache to export all the variables:
<Location /test>
SetHandler mono
SSLRequireSSL
SSLVerifyClient require
SSLVerifyDepth 1
SSLOptions +StdEnvVars +CompatEnvVars +ExportCertData
</Location>
I want to use SERVER_SOFTWARE variable to indetify the server and populate =
the=20
correct variables to ServerVariablesCollection, but can't retrieve it.
I'm making some mistake ?
TIA
--=20
:: nelson ::