|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
Short answer -> http://forums.devshed.com/showthread.php?threadid=8878
Full answer with details + Perl script -> http://forums.devshed.com/showthread.php?threadid=9055 |
|
#3
|
|||
|
|||
|
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? |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
>> 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 |
|
#7
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Chaning the server_software variable? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|