すべてのサーバ変数

USER: apache
HOME: /usr/share/httpd
SCRIPT_NAME: /~okumura/php/allenv.php
REQUEST_URI: /~okumura/php/allenv.php
QUERY_STRING: 
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.1
GATEWAY_INTERFACE: CGI/1.1
REMOTE_PORT: 45859
SCRIPT_FILENAME: /home/okumura/public_html/php/allenv.php
SERVER_ADMIN: okumura@okumuralab.org
CONTEXT_DOCUMENT_ROOT: /home/okumura/public_html
CONTEXT_PREFIX: /~okumura
REQUEST_SCHEME: https
DOCUMENT_ROOT: /var/www/html
REMOTE_ADDR: 18.116.86.160
SERVER_PORT: 443
SERVER_ADDR: 153.126.215.200
SERVER_NAME: okumuralab.org
SERVER_SOFTWARE: Apache/2.4.62 (AlmaLinux) OpenSSL/3.2.2
SERVER_SIGNATURE: 
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin
HTTP_HOST: okumuralab.org
HTTP_ACCEPT_ENCODING: gzip, br, zstd, deflate
HTTP_USER_AGENT: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT: */*
proxy-nokeepalive: 1
SSL_SESSION_RESUMED: Initial
SSL_SESSION_ID: 23fe11e99fb6d3a6c6985bf00eb26f06e178884c79aab6b058d79cd50af1e595
SSL_SERVER_A_SIG: sha256WithRSAEncryption
SSL_SERVER_A_KEY: rsaEncryption
SSL_SERVER_I_DN: CN=R11,O=Let's Encrypt,C=US
SSL_SERVER_S_DN: CN=okumuralab.org
SSL_SERVER_V_END: Feb  1 01:09:08 2025 GMT
SSL_SERVER_V_START: Nov  3 01:09:09 2024 GMT
SSL_SERVER_M_SERIAL: 04468D16B510C7FA71BD57CCEC96A562F7A6
SSL_SERVER_M_VERSION: 3
SSL_CLIENT_VERIFY: NONE
SSL_CIPHER_ALGKEYSIZE: 256
SSL_CIPHER_USEKEYSIZE: 256
SSL_CIPHER_EXPORT: false
SSL_CIPHER: TLS_AES_256_GCM_SHA384
SSL_COMPRESS_METHOD: NULL
SSL_SECURE_RENEG: true
SSL_PROTOCOL: TLSv1.3
SSL_VERSION_LIBRARY: OpenSSL/3.2.2
SSL_VERSION_INTERFACE: mod_ssl/2.4.62
SSL_SERVER_SAN_DNS_0: okumuralab.org
SSL_SERVER_I_DN_CN: R11
SSL_SERVER_I_DN_O: Let's Encrypt
SSL_SERVER_I_DN_C: US
SSL_SERVER_S_DN_CN: okumuralab.org
SSL_TLS_SNI: okumuralab.org
HTTPS: on
UNIQUE_ID: Z0QKDsloQGvUH4-aYqfWmwAAAJI
FCGI_ROLE: RESPONDER
PHP_SELF: /~okumura/php/allenv.php
REQUEST_TIME_FLOAT: 1732512270.0747
REQUEST_TIME: 1732512270

ソース

<pre>
<?php
  foreach ($_SERVER as $x => $y) {
    echo htmlspecialchars("$x: $y\n");
  }
?>
</pre>

奥村晴彦

Last modified: 2012-04-18 15:40:06