Apache2 Won't Start on Startup

Dan Poirier poirier at pobox.com
Thu Feb 4 18:01:27 PST 2010


On Thu, Feb  4, 2010, at 08:08:12 PM, Ryan Schmidt <ryandesign at macports.org> 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.

Dan


More information about the macports-users mailing list