Apache2 Won't Start on Startup

Ryan Schmidt ryandesign at macports.org
Thu Feb 4 18:07:14 PST 2010


On Feb 4, 2010, at 20:01, Dan Poirier wrote:

> On Thu, Feb  4, 2010, at 08:08:12 PM, Ryan Schmidt wrote:
> 
>> I tried something similar, but I could not find a way to then use that
>> $HOME variable (or any variable) in the Include statement. I don't
>> think the Apache configuration file syntax supports variable
>> expansion.
> 
> It's supposed to work, though it only got documented recently:
> <http://httpd.apache.org/docs/2.2/configuring.html>.  Apache 2.2.14,
> right?
> 
> ${ENVVAR} is the syntax.  Let me try it...  yes, if I put this in my
> httpd.conf:
> 
> ServerAdmin ${USER}@example.com
> 
> I get my username in error documents.  It seems to work for ${PATH} too.

Ok, I see that, but I cannot get it to work for environment variables I have set myself with

SetEnv MYVAR myvalue



More information about the macports-users mailing list