Open rbotha78 opened 1 year ago
so probably only the type of the "include" will need to be changed as a quick win? :)
I don't know how ugly this could be, but we could work around with something like
<IfModule mod_proxy.c>
<IfModule mod_ssl.c>
SSLProxyEngine on
</IfModule>
IncludeOptional /etc/httpd/conf.d/proxy/*.proxy
</IfModule>
sure @EsteBustamante but the key thing here to have it working after generating a project from archetype. not to be forced to do one extra step after ;)
The generated vhost files for author and publisher includes a block that's using a directive (SSLProxyEngine) not available in Apache 2.4.6 that's deployed on standard AMS.
This directive appears to only be available in Apache 2.4.30+
Furthermore, the proxy directory missing if the commerce module is not enabled, resulting in a startup failure.
and if the directory is created, startup still fails due to the use of Include instead of IncludeOptional
https://github.com/adobe/aem-project-archetype/blob/33ccc1fefddee72f6b2b94ab3f1d73c9b2fc7108/src/main/archetype/dispatcher.ams/src/conf.d/available_vhosts/__appId___publish.vhost#L60 https://github.com/adobe/aem-project-archetype/blob/33ccc1fefddee72f6b2b94ab3f1d73c9b2fc7108/src/main/archetype/dispatcher.ams/src/conf.d/available_vhosts/aem_author.vhost#L65