Missing CGI variables

If your Adobe ColdFusion server is missing the CGI variables or they are showing up as blank it means you are missing the custom environment variables in your mod_jk.conf

To fix the FTP into your server and find your mod_jk.conf file which would normally be located at: /usr/local/apache/conf/mod_jk.conf and add the following lines:

# custom environment variables
JkEnvVar REDIRECT_URL
JkEnvVar REDIRECT_REMOTE_HOST
JkEnvVar REDIRECT_PATH
JkEnvVar REDIRECT_QUERY_STRING
JkEnvVar REDIRECT_HTTP_ACCEPT
JkEnvVar REDIRECT_HTTP_USER_AGENT
JkEnvVar REDIRECT_REMOTE_ADDR
JkEnvVar REDIRECT_SERVER_NAME
JkEnvVar REDIRECT_SERVER_PORT
JkEnvVar REDIRECT_SERVER_SOFTWARE

When completed you need to either reinstall the ColdFusion Apache connector or copy the content from your mod_jk.conf file and replace the old mod_jk.conf contents in the file: /etc/apache2/conf.d/includes/post_virtualhost_global.conf (file maybe different depending on Apache version. Check your httpd.conf file for "post_virtualhost_global.conf" path)

  • ColdFusion, CGI, Environment Variables
  • 2 Users Found This Useful
Was this answer helpful?