Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add to .htaccess to add all .htaccess variables to the header
Header set X-Htaccess-Headers "API_VERSION: %{API_VERSION}e; AUTH_TYPE: %{AUTH_TYPE}e; CONTENT_LENGTH: %{CONTENT_LENGTH}e; CONTENT_TYPE: %{CONTENT_TYPE}e; DOCUMENT_ROOT: %{DOCUMENT_ROOT}e; GATEWAY_INTERFACE: %{GATEWAY_INTERFACE}e; IS_SUBREQ: %{IS_SUBREQ}e; ORIG_PATH_INFO: %{ORIG_PATH_INFO}e; ORIG_PATH_TRANSLATED: %{ORIG_PATH_TRANSLATED}e; ORIG_SCRIPT_FILENAME: %{ORIG_SCRIPT_FILENAME}e; ORIG_SCRIPT_NAME: %{ORIG_SCRIPT_NAME}e; PATH: %{PATH}e; PATH_INFO: %{PATH_INFO}e; PHP_SELF: %{PHP_SELF}e; QUERY_STRING: %{QUERY_STRING}e; REDIRECT_QUERY_STRING: %{REDIRECT_QUERY_STRING}e; REDIRECT_REMOTE_USER: %{REDIRECT_REMOTE_USER}e; REDIRECT_STATUS: %{REDIRECT_STATUS}e; REDIRECT_URL: %{REDIRECT_URL}e; REMOTE_ADDR: %{REMOTE_ADDR}e; REMOTE_HOST: %{REMOTE_HOST}e; REMOTE_IDENT: %{REMOTE_IDENT}e; REMOTE_PORT: %{REMOTE_PORT}e; REMOTE_USER: %{REMOTE_USER}e; REQUEST_FILENAME: %{REQUEST_FILENAME}e; REQUEST_METHOD: %{REQUEST_METHOD}e; REQUEST_TIME: %{REQUEST_TIME}e; REQUEST_URI: %{REQUEST_URI}e; SCRIPT_FILENAME: %{SCRIPT_FILENAME}e; SCRIPT_GROUP: %{SCRIPT_GROUP}e; SCRIPT_NAME: %{SCRIPT_NAME}e; SCRIPT_URI: %{SCRIPT_URI}e; SCRIPT_URL: %{SCRIPT_URL}e; SCRIPT_USER: %{SCRIPT_USER}e; SERVER_ADDR: %{SERVER_ADDR}e; SERVER_ADMIN: %{SERVER_ADMIN}e; SERVER_NAME: %{SERVER_NAME}e; SERVER_PORT: %{SERVER_PORT}e; SERVER_PROTOCOL: %{SERVER_PROTOCOL}e; SERVER_SIGNATURE: %{SERVER_SIGNATURE}e; SERVER_SOFTWARE: %{SERVER_SOFTWARE}e; THE_REQUEST: %{THE_REQUEST}e; TIME: %{TIME}e; TIME_DAY: %{TIME_DAY}e; TIME_HOUR: %{TIME_HOUR}e; TIME_MIN: %{TIME_MIN}e; TIME_MON: %{TIME_MON}e; TIME_SEC: %{TIME_SEC}e; TIME_WDAY: %{TIME_WDAY}e; TIME_YEAR: %{TIME_YEAR}e; TZ: %{TZ}e; UNIQUE_ID: %{UNIQUE_ID}e; HTTP_ACCEPT: %{HTTP_ACCEPT}e; HTTP_ACCEPT_CHARSET: %{HTTP_ACCEPT_CHARSET}e; HTTP_ACCEPT_ENCODING: %{HTTP_ACCEPT_ENCODING}e; HTTP_ACCEPT_LANGUAGE: %{HTTP_ACCEPT_LANGUAGE}e; HTTP_CACHE_CONTROL: %{HTTP_CACHE_CONTROL}e; HTTP_CONNECTION: %{HTTP_CONNECTION}e; HTTP_COOKIE: %{HTTP_COOKIE}e; HTTP_FORWARDED: %{HTTP_FORWARDED}e; HTTP_HOST: %{HTTP_HOST}e; HTTP_KEEP_ALIVE: %{HTTP_KEEP_ALIVE}e; HTTP_PROXY_CONNECTION: %{HTTP_PROXY_CONNECTION}e; HTTP_REFERER: %{HTTP_REFERER}e; HTTP_USER_AGENT: %{HTTP_USER_AGENT}e; HTTPS: %{HTTPS}e; SSL_CIPHER: %{SSL_CIPHER}e; SSL_CIPHER_ALGKEYSIZE: %{SSL_CIPHER_ALGKEYSIZE}e; SSL_CIPHER_EXPORT: %{SSL_CIPHER_EXPORT}e; SSL_CIPHER_USEKEYSIZE: %{SSL_CIPHER_USEKEYSIZE}e; SSL_CLIENT_VERIFY: %{SSL_CLIENT_VERIFY}e; SSL_PROTOCOL: %{SSL_PROTOCOL}e; SSL_SERVER_A_KEY: %{SSL_SERVER_A_KEY}e; SSL_SERVER_A_SIG: %{SSL_SERVER_A_SIG}e; SSL_SERVER_CERT: %{SSL_SERVER_CERT}e; SSL_SERVER_I_DN: %{SSL_SERVER_I_DN}e; SSL_SERVER_I_DN_C: %{SSL_SERVER_I_DN_C}e; SSL_SERVER_I_DN_CN: %{SSL_SERVER_I_DN_CN}e; SSL_SERVER_I_DN_L: %{SSL_SERVER_I_DN_L}e; SSL_SERVER_I_DN_O: %{SSL_SERVER_I_DN_O}e; SSL_SERVER_I_DN_OU: %{SSL_SERVER_I_DN_OU}e; SSL_SERVER_I_DN_ST: %{SSL_SERVER_I_DN_ST}e; SSL_SERVER_M_SERIAL: %{SSL_SERVER_M_SERIAL}e; SSL_SERVER_M_VERSION: %{SSL_SERVER_M_VERSION}e; SSL_SERVER_S_DN: %{SSL_SERVER_S_DN}e; SSL_SERVER_S_DN_CN: %{SSL_SERVER_S_DN_CN}e; SSL_SERVER_S_DN_O: %{SSL_SERVER_S_DN_O}e; SSL_SERVER_S_DN_OU: %{SSL_SERVER_S_DN_OU}e; SSL_SERVER_V_END: %{SSL_SERVER_V_END}e; SSL_SERVER_V_START: %{SSL_SERVER_V_START}e; SSL_SESSION_ID: %{SSL_SESSION_ID}e; SSL_VERSION_INTERFACE: %{SSL_VERSION_INTERFACE}e; SSL_VERSION_LIBRARY: %{SSL_VERSION_LIBRARY}e; "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.