DeveloperSide.NET Forums
July 06, 2020, 05:28:35 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Adding an environment variable to the DevSide Apache2  (Read 5423 times)
0 Members and 1 Guest are viewing this topic.
t078871
Member
*
Posts: 2


View Profile
« on: April 05, 2006, 04:06:35 PM »

I need to add an additional environment variable to the scope of DevSide Apache2 variables. But SetEnv, SetEnfIf and PassEnv do not work and lead to startup errors during parsing of httpd.conf, were I added at the end:

SetEnv http_proxy http://myproxyserver:8080

The module mod_setenvif.c seems to be included according to the "Apache Server Information" page.

Does anybody have an idea, why this fails, and how I can successfully add my Apache env.-variable?

Thanx and cheers,
t078871
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #1 on: April 05, 2006, 05:35:41 PM »

Are you using our Suite?

SetEnv is part of mod_env...
http://httpd.apache.org/docs/2.0/mod/mod_env.html
You will need to uncomment that module under httpd.conf

SetEnvIf is part of mod_setenvif
http://httpd.apache.org/docs/2.0/mod/mod_setenvif.html
This is is already uncommented under our Suite, check your httpd.conf

Also see...
http://httpd.apache.org/docs/2.0/env.html
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
t078871
Member
*
Posts: 2


View Profile
« Reply #2 on: April 06, 2006, 07:43:09 AM »

Great answer!
Thanks a lot. The uncommenting of mod_env in httpd.conf made SetEnv available, and the new environment variable for Apache2 could be set successfully. My fault was to assume that SetEnv belongs to the mod_setenvif module.

So, problem is solved, and my Apache2 out of your DevSide Suite is enriched by another great functionality, which was depending on reading web-pages by "comline" (out of W3C Libwww line-mode browser package) through a proxy-server.

Best regards,
t078871
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!