Greetings! I've been running Apache web sites for years, but until now had never needed to reference environment variables inside the configuration files. I'm trying to set up a load balancing configuration using mod_proxy_balancer under Apache 2.2.3 (stock install under Debian Etch). My enabled modules are: core_module (static) log_config_module (static) logio_module (static) mpm_prefork_module (static) http_module (static) so_module (static) alias_module (shared) auth_basic_module (shared) authn_file_module (shared) authz_default_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgi_module (shared) dir_module (shared) env_module (shared) headers_module (shared) mime_module (shared) negotiation_module (shared) php4_module (shared) proxy_module (shared) proxy_balancer_module (shared) proxy_connect_module (shared) proxy_http_module (shared) setenvif_module (shared) status_module (shared) userdir_module (shared) Here is the failing part of the config file: <VirtualHost *:8080> # Proxy configuration for testing load balancer. # S. Courtney, Sine Nomine Associates, 2007-09-24 # For documentation see http://httpd.apache.org/docs/2.2/mod/mod_proxy.html # and http://issues.apache.org/bugzilla/show_bug.cgi?id=43433 ServerName myapp.sinenomine.net ProxyRequests off LogLevel debug ErrorLog /var/log/apache2/debug.log <Proxy balancer://etr_cluster> # This sets a cookie telling which server should have affinity for this client. # Requires mod_headers to be loaded. # Header always add Set-Cookie "MYAPP=MYAPP.%{BALANCER_WORKER_ROUTE}e; path=/;" env=BALANCER_ROUTE_CHANGED Header always add Set-Cookie "MYAPP=MYAPP.%{BALANCER_WORKER_ROUTE}e; path=/;" Header always add X-Myapp-Balancer "%{BALANCER_WORKER_NAME}e;" Header always add X-Server-Addr "%{SERVER_ADDR}e" BalancerMember http://192.168.201.121:28080 smax=5 max=20 loadfactor=10 route=etr01 BalancerMember http://192.168.201.121:38080 smax=5 max=20 loadfactor=10 route=etr02 Order deny,allow Deny from all Allow from all </Proxy> # Uncomment the following line to enable session affinity, required for reports to work # Note that we _do_ allow failover, realizing that it will not work for report downloads # in progress. We accept a small limitation for a large gain in functionality. # The stickysession parameter relies on the cookie set in the balancer declaration above. ProxyPass / balancer://etr_cluster/ nofailover=On stickysession=myapp # Uncomment the following line to disable session affinity # ProxyPass / balancer://etr_cluster/ nofailover=off # These lines prevent the users from seeing the canonical host in redirections. # CAUTION: The trailing slash is significant! ProxyPassReverse / balancer://etr_cluster/ ProxyPassReverse / http://192.168.201.121:28080/ ProxyPassReverse / http://192.168.201.121:38080/ ProxyPassReverseCookieDomain 192.168.201.121 myapp.sinenomine.net </VirtualHost> The line "Header always add X-Server-Addr "%{SERVER_ADDR}e"" is just for testing. The basis for this configuration is from http://issues.apache.org/bugzilla/show_bug.cgi?id=43433 When I run this, everything works fine with no errors in the log, except that all the environment variables are replaced with "(null)" in the I/O to the browser. I feel I must be overlooking something obvious...anyone see what I'm doing wrong? Kind regards, and thanks, Scott -- ----------------------------------------------------------------------------- Scott D. COURTNEY, Principal Engineer Sine Nomine Associates scourtney@xxxxxxxxxxxxxx http://www.sinenomine.net/ --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx