https://bz.apache.org/bugzilla/show_bug.cgi?id=58304
Bug ID: 58304
Summary: Unexpected Warnings from Macro Use in 2.4
Product: Apache httpd-2
Version: 2.4.16
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Core
Assignee: [email protected]
Reporter: [email protected]
Starting with 2.4.12 and still existing in 2.4.16, when using a Macro
definition for virtual hosts, I get repeated warnings to stdout that the macro
variables are undefined every time apache is started or during a syntax check:
root@dedi2:/home/tbrowde# apachectl -t
[Sun Aug 30 16:39:35.097827 2015] [core:warn] [pid 4101:tid 140105241839360]
AH00111: Config variable ${PROJECT} is not defined
[Sun Aug 30 16:39:35.097911 2015] [core:warn] [pid 4101:tid 140105241839360]
AH00111: Config variable ${TLD} is not defined
[Sun Aug 30 16:39:35.098007 2015] [core:warn] [pid 4101:tid 140105241839360]
AH00111: Config variable ${PROJECT} is not defined
[Sun Aug 30 16:39:35.098021 2015] [core:warn] [pid 4101:tid 140105241839360]
AH00111: Config variable ${TLD} is not defined
[Sun Aug 30 16:39:35.098562 2015] [core:warn] [pid 4101:tid 140105241839360]
AH00111: Config variable ${PROJECT} is not defined
[Sun Aug 30 16:39:35.098575 2015] [core:warn] [pid 4101:tid 140105241839360]
AH00111: Config variable ${TLD} is not defined
[Sun Aug 30 16:39:35.098889 2015] [core:warn] [pid 4101:tid 140105241839360]
AH00111: Config variable ${PROJECT} is not defined
[Sun Aug 30 16:39:35.098904 2015] [core:warn] [pid 4101:tid 140105241839360]
AH00111: Config variable ${TLD} is not defined
Syntax OK
I am using three macros that are defined in the httpd.conf file as follows:
<Macro VHOST_NONTLS ${PROJECT} ${TLD}>
<VirtualHost *:80>
ServerName ${PROJECT}.${TLD}
ServerAlias *.${PROJECT}.${TLD}
DocumentRoot /home/web-server/${PROJECT}.${TLD}/public
</VirtualHost>
</Macro>
Use VHOST_NONTLS niceville.pm org
UndefMacro VHOST_NONTLS
<Macro VHOST_FREE_CERT_TLS ${PROJECT} ${TLD}>
<VirtualHost *:80>
ServerName ${PROJECT}.${TLD}
ServerAlias *.${PROJECT}.${TLD}
# enforce ssl/tls
Redirect Permanent / https://${PROJECT}.${TLD}/
</VirtualHost>
</Macro>
Use VHOST_FREE_CERT_TLS computertechnwf org
UndefMacro VHOST_FREE_CERT_TLS
<Macro VHOST_WILDCARD_TLS ${PROJECT} ${TLD}>
<VirtualHost *:80>
ServerName ${PROJECT}.${TLD}
ServerAlias *.${PROJECT}.${TLD}
# enforce ssl/tls
Redirect Permanent / https://${PROJECT}.${TLD}/
</VirtualHost>
# ...
</Macro>
Use VHOST_WILDCARD_TLS highlandsprings61 org
UndefMacro VHOST_WILDCARD_TLS
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]