Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old February 24th, 2001, 01:26 AM
Nitro Nitro is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: USA
Posts: 27 Nitro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Nitro Send a message via AIM to Nitro
Question

How would I be able to change the server_software variable for apache? I think that is what you call it, it contains data like: Apache/1.3.14 (Unix) mod_perl/1.24_01 PHP/4.0.4 mod_ssl/2.7.1 OpenSSL/0.9.6 .

Thanks in Advance.

Reply With Quote
  #2  
Old February 24th, 2001, 06:49 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Reply With Quote
  #3  
Old February 24th, 2001, 10:19 AM
Nitro Nitro is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: USA
Posts: 27 Nitro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Nitro Send a message via AIM to Nitro
Question But, how would I change it?

But, how would I change it?
Like devshed's is: InfoWest.COM-CUSTOM-Apache/2.5.6
Thats not an Apache Default, with just minimal server tokens.
How did they do that? Something prior to compiling?

Reply With Quote
  #4  
Old February 25th, 2001, 05:46 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Start here -> http://httpd.apache.org/docs/mod/mod_env.html#setenv

Keep in mind, Context: server config, virtual host so you can't use .htaccess. server config is httpd.conf.

Reply With Quote
  #5  
Old March 1st, 2001, 06:07 PM
Nitro Nitro is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: USA
Posts: 27 Nitro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Nitro Send a message via AIM to Nitro
Didn't work

Sorry to bother you again, but the SetEnv didn't work. I wrote a quick perl script and printed the contents of two variables I defined in the httpd.conf file with SetEnv
one was SERVER_SOFTWARE and the other was SERVER_SOFTWARE2. SERVER_SOFTWARE2 worked correctly but the other didn't. For some reason Apache must be re-defining the variable again.

Reply With Quote
  #6  
Old March 1st, 2001, 08:57 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> For some reason Apache must be re-defining the variable again.

You can unset it first if that's the case.

http://httpd.apache.org/docs/mod/mod_env.html#unsetenv

Reply With Quote
  #7  
Old March 1st, 2001, 09:14 PM
Nitro Nitro is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: USA
Posts: 27 Nitro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Nitro Send a message via AIM to Nitro
It just doesn't want to work for me, this is what is in my httpd.conf:

UnsetEnv SERVER_SOFTWARE
SetEnv SERVER_SOFTWARE2 "This is var2"
SetEnv SERVER_SOFTWARE "This is var1"

SERVER_SOFTWARE2 gets passed to perl/cgi fine, but SERVER_SOFTWARE doesn't.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Chaning the server_software variable?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway