Environment Variable Name | Present Value | Description |
---|---|---|
Client variables top | ||
RCEremote_addr | IP address of the client. | |
RCEresolvedns | Perform DNS lookup on clients. (affects RCEhostname) | |
RCEhostname | Host name of the client. | |
RCErequestmethod | Request method (GET | POST). | |
RCErequest | URI requested by client (less query_string). | |
RCEquery_string | Client query_string variables names/values requested via GET method (URL encoded). (example) | |
RCEcontent_length | POSTed content length. | |
RCEcontent_type | Content type. | |
RCEhttp_cookie | Cookie string. | |
RCEreferer | Referer associated with client. | |
RCEhttp_referer | Refering page (same as RCEreferer). | |
RCEagent | Client browser type. | |
RCEhttp_useragent | User agent (same as RCEagent). | |
RCEusername | User name. | |
RCEloggedin | Is the user logged in? | |
RCEauth_type | Authorization Type | |
RCEhttp_accept_charset | User characterset/language. | |
RCEhttp_accept_encoding | User preferred character encoding. | |
RCEhttp_accept_language | User preferred language. | |
RCEhttp_pragma | Page cacheing duration. | |
Server (HTTP) variables top | ||
RCEmaxusers | Maximum number of users allowed to be logged in simultaniously. | |
RCEvhost | Host name the client is communicating with. | |
RCErequest | URL request value. | |
RCEdocument_uri | Document path. | |
RCEdocument_name | Document name. | |
RCElast_modified | Document modification time. | |
RCElast_moddate | Document modification date. | |
RCEpath_info | Path info. | |
RCEpath_translated | Path translated. | |
RCEscript_name | Script name. | |
RCEuridir | URI path. | |
RCEcontent_length | Content_length. | |
RCEcontent_type | Content Type. | |
RCEstarttime | Sambar Server starttime. | |
RCEsysadmin | Name assocaited with System administrator. | |
RCEsysadminip | The IP address(es), the administrator can login from. | |
RCEserverip | Server IP address. | |
RCEport | Port on which the server is running. | |
RCEversion | Server version. | |
RCEservername | Server name. | |
RCEwatcher | Run the server watcher. | |
RCEwatcherto | The watcher time-out - i.e. the watcher will check the server-state every x seconds and will restart, if the server has crashed. | |
RCEhomepage | Server home page. | |
RCEdefpage | Server default directory page(s). | |
RCEdocsdir | The document root for the server. | |
RCErootdir | The path to the installation directory, also know as the server root | |
RCEmaxconns | The maximum number of network connections for the server. | |
RCEcachesize | The maximum size for the server file cache (in bytes). | |
RCEnettimeout | Network read timeout. | |
RCEpaused | Server paused? | |
RCEserver_software | Server software. | |
RCEserver_name | Server name. | |
RCEserver_protocol | Server protocol. | |
Services variables top | ||
RCEmailserver | Act as Mail server. | |
RCErunsmtp | Act as SMTP server. | |
RCEdnsserver | Act as DNS server. | |
RCEhttpsserver | Act as HTTP SSL server. | |
RCEtelnetd | Act as Telnet daemon. | |
RCEjavaeng | Java engine enabled. | |
RCEusedbms | ODBC interface enabled. | |
FTP Services variables top | ||
RCEftpserver | Act as FTP Server. | |
RCEftpport | FTP Port for Server. | |
RCEftpusers | Maximum simultaniously connected FTP users. | |
RCEftpupload | Maximum amount (in bytes) for a single file-size. | |
Time variables top | ||
RCEdatetime | Current date/time string. | |
RCEdate_local | Same as datetime. | |
RCEdate_gmt | Current date/time string in GMT. | |
RCEhour | Current hour value (0-23). | |
RCEminute | Current minute value (0-23). | |
RCEsecond | Current second value (0-59). | |
RCEweekday | Weekday value (1-7). | |
RCEday | Day of the week (1-31). | |
RCEmonth | Month of the year (1-12). | |
RCEyear | Year value (i.e. 1997). | |
RCEtime | time() (Seconds since 1/1/1970) | |
CRON scheduler variables top | ||
RCEcrontimeout | Maximum duration (in seconds) for a CRON scheduled task to complete (unless run in parallel). | |
CGI variables top | ||
RCEcgiext | The extension(s) configured for cgi processing, outside the regular cgi-bin. | |
RCEcgitimeout | Maximum CGI executaion duration. | |
RCEcgistderr | Show CGI standard error. | |
RCEcgidir | The path to the cgi-bin directory. If not preceded by a drive letter, this path is relative to the Sambar installation directory. | |
RCEgateway_interface | Gateway interface. | |
RCEwincgidir | The path to the wincgi directory. If not preceded by a drive letter, this path is relative to the Sambar installation directory. | |
RCEwincgiext | The extension(s) configured for wincgi processing, outside the regular win cgi directory. | |
RCEisapiext | The extension(s) associated with ISAPI plug-ins. | |
RCEisapidbg | ISAPI debug level. | |
RCEssi | The extension(s) configured for Server Side Includes processing. | |
Mail variables top | ||
RCEmailname | Hostname of the mail-server. | |
RCEmboxsize | Maximum size of a mail-box. | |
RCEmsgrelay | Mail relay spool time (ondemand | hourly | daily) | |
RCEmaildomains | Space-seperated list of domainnames (-patterns) which are considered local by the SMTP server. | |
RCEmta | Act as remote MTA. | |
RCEmaxmsgsize | Maximum message size in bytes. | |
RCEnombox | Mailbox where mail will be transfered to when the mailbox cannot be resolved to a local user. | |
RCErestrictrelay | Enforce relay restrictions (anti-spam) | |
RCErestrictrelayip | Space seperated list of ip-adresses (-patterns), which are allowed to relay mail. | |
RCErelayuser | Username to use, when sending mail via the ISP | |
RCEnumusers | Current amount of logged in users (admin included). | |
RCEhasmbox | Does this user have a mailbox? | |
Proxy variables top | ||
RCErproxyport | Remote proxy port. | |
RCEhttpproxy | Acting as HTTP proxy. | |
RCEproxyfilter | HTTP Proxy word filter enabled. | |
RCElogproxy | Log HTTP proxy activity to proxy.log | |
RCEfilterip | Space seperated list of IP(s) to inhibit | |
RCEftpproxy | Acting as FTP proxy. | |
RCEftpport | Acting as FTP proxy. | |
RCEnntpproxy | Acting as NNTP (news) proxy. | |
RCEnntpserver | Hostname of the NNTP (news) server. | |
RCEnntpport | NNTP (news) server port. | |
RCEsmtpproxy | Acting as SMTP proxy. | |
RCEsmtpserver | SMTP Server for proxy. | |
RCEsmtpport | SMTP Port for proxy. | |
RCEpop3proxy | Acting as POP3 proxy. | |
RCEpop3server | POP3 Server for proxy. | |
RCEpop3port | POP3 Port for proxy. | |
RCEpop3enh | POP3 enhanced proxy functionality enabled. | |
RCEimap4proxy | Acting as IMAP4 proxy. | |
RCEimap4server | IMAP4 Server for proxy. | |
RCEimap4port | IMAP4 Port for proxy. | |
RCEsocksd | Acting as SOCKS proxy. | |
RCEsocksport | Port for the SOCKS proxy. | |
RCErealproxy | Acting as Real Media (c) Proxy. | |
RCEbridgeproxy | Acting as Bridge proxy. | |
RCEbridgeserver | Hostname of the bridge-server. | |
RCEbridgeport | Port for the bridge server. | |
RCErproxy | Hostname of the remote (caching) proxy. Blank disables the proxy. | |
RCErealport | Port for the Real Media (c) proxy. | |
Dialup Services variables top | ||
RCEdialup | Dial-on-demand enabled. | |
RCEdialtrace | Log detailed dial-up connection information to server.log. | |
RCEdialentry | Name of the dial-up connection to dial, as configured in RAS (NT) or DUN (9x). | |
RCEdialuser | Username for login to the ISP. | |
RCEdialpass | Password for login to the ISP. | |
RCEdialtimeout | Inactivity timeout in seconds. If no proxy requests are received within this period, the server will hang-up the connection. | |
Logging Services variables top | ||
RCEnoip | The ip-adress(es) which are not logged. | |
RCEnoreq | The extension(s) which are not logged. | |
RCElogsize | The maximum log-size for rotated logs (0 equals no limit). | |
RCEautolog | Log rotation frequency. | |
RCElogformat | HTTP server log format. | |
RCEtracesmtp | Log SMTP activity to smtp.log. | |
RCEtracepop3 | Log POP3 activity to pop3.log. | |
RCEtraceimap4 | Log IMAP4 activity to imap4.log. | |
RCEtracerouter | Log MTA activity to router.log. | |
RCEtracefetcher | Log fetcher activity to fetcher.log. | |
DNS Services variables top | ||
RCEdnshosts | Location and name of the dns hosts file. | |
RCEforwarddns | Forward DNS requests? | |
RCEdnsprimary | Hostname of the primary DNS server to forward requests to. | |
Security variables top | ||
RCErealm | The name of the security realm. | |
RCEshowdirs | Directory browsing allowed. | |
RCEhtaccess | Enforce htaccess. | |
RCEputusers | The user(s) allowed to upload via the PUT method. | |
RCEsslcipher | SSL cipher type being used. | |
RCEsslversion | SSL version version. | |
RCEnoscriptexec | Disallow cgi/wincgi execution in server-side scripts. | |
RCEvalidchars | Characters which are considered valid for FTP filenames. |
RCEremote_addr
is the same
as $ENV{'REMOTE_ADDR'}
in PERL. Conversely, some variables
that are available to other languages are not available to Sambar scripts;
$ENV{'PATH'}
What other environment variables are available to Sambar Scripting and/or CGIs ?