Environment Variables

How do I configure the Sun Java System Web Server 7.0 to pass the fully qualified URL as the cgi.server_name environment variable?
[137 byte] By [dojaegera] at [2007-11-27 9:26:43]
# 1

Do you mean the SERVER_NAME environment variable defined by the CGI/1.1 specification? That environment variable is supposed to contain the "server's hostname, DNS alias, or IP address", so it would be an error for it to contain an URL. (You can read the CGI/1.1 specification at http://hoohoo.ncsa.uiuc.edu/cgi/interface.html)

Perhaps you should try using the SERVER_URL environment variable?

elvinga at 2007-7-12 22:23:58 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

I am trying to set the webserver instance up so the cgi.server_name value is the fully qualified name of the server. One of our apps is programmed so that someone just enters the short name of the server, it redirects them to the fully qualified name of the server by using the cgi.server_name.

dojaegera at 2007-7-12 22:23:58 > top of Java-index,Web & Directory Servers,Web Servers...