IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Apache config question
Most places have a dev qa and prod environment. Now the idea is to keep all of the configs the same so an inadvertent copy from one environment to the other will not cause havoc
so apachectl gets an evironmental variable by assigning the value in a file
ENVPREFIX=`cat env'
the httpd.conf has the following statement
PassEnv ENVPREFIX

then in the vhosts file
<Virtualhost>
ServerName %[ENV:ENVPREFIX]www.foo.com
</Virtualhost>

however what happens when your entry in the httpd.conf has
NameVirtualHost *
(note, no port assigned)it throws the following error
The port number "%{ENV:ENVPREFIX}origina22.www.foo.com" is outside the appropriate range (i.e., 1..65535).
if you assert the port
NameVirtualHost *:80
the error message goes away. Now what is the disadvantage of not asserting the port even tho the
Listen 80
statemnet is above it?

Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 55 years. meep
New I do not see environmental variable expansion in there
http://httpd.apache....cs/trunk/env.html

You sure?
Expand Edited by crazy March 21, 2012, 02:47:24 PM EDT
New yes, it works as explained
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 55 years. meep
New Deprecated syntax?
According to http://httpd.apache..../configuring.html, the syntax to include shell variables is:
The values of shell environment variables can be used in configuration file lines using the syntax ${ENVVAR}. If "ENVVAR" is the name of a valid environment variable, the value of that variable is substituted into that spot in the configuration file line, and processing continues as if that text were found directly in the configuration file. (If the ENVVAR variable is not found, the characters "${ENVVAR}" are left unchanged for use by later stages in the config file processing.)

Looks like the first pass fails because of the extra ENV:, then the name parser trips over the colon and thinks "ENVPREFIX}foo.com" is the port number. Unless you include the real port and then something further down the line picks up the ENV: syntax.
New thank you, I will try that tomorrow
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 55 years. meep
New Thank you much, that was it
and I have a rash of that all over the boxen :-(
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 55 years. meep
New I think...
... going by what you have been running into so far, you should accidentally rm -rf /etc/apache ;-)
Can't take much more time to rebuild a maintainable config than continuously sorting out why things aren't working right in that pile.
New Ahh ... the strategic "oops"
--

Drew
New problematical
apache going flat is about 3.5 million per hour
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 55 years. meep
New Details, details...
Overhead line or buried? Truck or backhoe?
Expand Edited by scoenye March 23, 2012, 05:44:25 PM EDT
New simultaneously in us china europe and singapore?
plan is underway. What you pointed out to me is a must do fix. Over the next few weeks that I need to do the fix there will be a complete drop in replacement
Any opinions expressed by me are mine alone, posted from my home computer, on my own time as a free American and do not reflect the opinions of any person or company that I have had professional relations with in the past 55 years. meep
     Apache config question - (boxley) - (10)
         I do not see environmental variable expansion in there - (crazy) - (1)
             yes, it works as explained -NT - (boxley)
         Deprecated syntax? - (scoenye) - (7)
             thank you, I will try that tomorrow -NT - (boxley)
             Thank you much, that was it - (boxley) - (5)
                 I think... - (scoenye) - (4)
                     Ahh ... the strategic "oops" -NT - (drook)
                     problematical - (boxley) - (2)
                         Details, details... - (scoenye) - (1)
                             simultaneously in us china europe and singapore? - (boxley)

Watch me pull a rabbit out of my hat!
61 ms