https://issues.apache.org/bugzilla/show_bug.cgi?id=56466
seyhun <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from seyhun <[email protected]> --- OK, I can confirm that the source of the issue has been totally my mistake ! After reading the mod_macro documentation carefully, I have changed $ prefixes to %{} to avoid confusion and that has just solved the problem. Now, the macros are as following; [Hopefully, this posts may help to users who face this or similar problem.] ------------------------------------------------------------------------------- # BEGIN MACROS # # http://httpd.apache.org/docs/current/mod/core.html#define # https://httpd.apache.org/docs/current/en/mod/mod_macro.html # http://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI # Define root_www /srv/www/ Define root_ssl /etc/ssl/certs/ <Macro ConnectionDefault %{id}> # nothing to do ErrorLog /var/log/httpd/%{id}/error.log </Macro> <Macro ModeNull %{id}> # mod_php: nothing to do ErrorLog /var/log/httpd/%{id}/error.log </Macro> <Macro ModePHPFPM %{id}> ProxyPassMatch ^/(.*\.php)$ unix:/var/run/php-fpm/php-fpm.sock|fcgi://127.0.0.1:9000${root_www}/%{id} </Macro> <Macro ModeHHVM %{id}> ProxyPassMatch ^/(.*\.php)$ unix:/var/run/hhvm/hhvm.sock|fcgi://127.0.0.1:9000${root_www}/%{id} </Macro> <Macro ConnectionSSL %{id}> SSLEngine On SSLCertificateFile "${root_ssl}%{id}.crt" SSLCertificateKeyFile "${root_ssl}%{id}.key" SSLCACertificateFile "${root_ssl}ca-certificates.crt" ErrorLog /var/log/httpd/%{id}/error.log </Macro> <Macro VHost %{id} %{mode} %{port} %{connection} %{name} %{alias}> <VirtualHost *:%{port}> ServerName %{name} ServerAlias %{alias} Use Connection%{connection} %{id} DocumentRoot "${root_www}/%{id}/" <Directory "${root_www}/%{id}/"> IncludeOptional ${root_www}/%{id}/.htaccess AllowOverride None Allow from all </Directory> CustomLog /var/log/httpd/%{id}/access.log combined ErrorLog /var/log/httpd/%{id}/error.log Use Mode%{mode} %{id} </VirtualHost> </Macro> # Use VHost example Null 80 Default example.com www.example.com # Use VHost example PHPFPM 443 SSL example.com www.example.com # Use VHost example HHVM 80 Default example.com www.example.com UndefMacro ConnectionDefault UndefMacro ConnectionSSL UndefMacro VHost UndefMacro ModeNull UndefMacro ModePHPFPM UndefMacro ModeHHVM # END MACROS ------------------------------------------------------------------------------- -- 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]
