Understanding Apache htaccess
Page 8 - Server Variables Part 2
Skip to navigation
Connection and Request
- Returns the IP address of the requesting machine (i.e. the user's or a proxies).
- Returns the name of the requesting host (i.e. the user's or a proxies).
- This variable is only set if a secure authentication was used to access the script, in this case it will store the username.
- This variable is set if the server has contacted an IDENTD server on the client machine. This is a slow operation, usually turned off in most servers, and there is no way to ensure that the client machine will respond honestly to the query, if it responds at all.
- Returns the method that initiated the request (e.g. 'GET', 'HEAD', 'POST', 'PUT').
- Returns the virtual path to the requested script.
- Returns the server path information.
- Returns the query string in the URL (i.e. the variables stored by GET).
- When running under Apache as module doing HTTP authenticated this variable is set to the authentication type.
- The document root directory under which the current script is executing, as defined in the server's configuration file (httpd.conf usually).
- The value given to the ServerAdmin directive in the web server configuration file. If the script is running on a virtual host, this will be the value defined for that virtual host. This value of this should be an email address.
- This is the servers hostname, DNS alias, or IP. This is basically the same as HTTP_HOST with the exception that any characters such as < are turned into HTML entities.
- The IP address of the server that is executing the script.
- Returns the server port number.
- Name and revision of the information protocol via which the page was requested (e.g. HTTP/1.0).
- The remote server's identification string (e.g. Apache/1.2.4).