すべてのサーバ変数

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: 15122
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: 52.14.17.231
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: e89f51b10d1ba9691de8cda196d23041d80bd132c96cba8bd8a78a33167e3df1
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: Jun  1 10:44:59 2025 GMT
SSL_SERVER_V_START: Mar  3 10:45:00 2025 GMT
SSL_SERVER_M_SERIAL: 046627F1AA8B1AFBA49DFFF06BAFDD567D62
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: Z-4244oAfb4K_2D-LDSd1AAAAFQ
FCGI_ROLE: RESPONDER
PHP_SELF: /~okumura/php/allenv.php
REQUEST_TIME_FLOAT: 1743664867.7391
REQUEST_TIME: 1743664867

ソース

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

奥村晴彦

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