Improve apache configuration
We use ${APACHE_LOG_DIR} in Apache configuration, but this is only defined in Debian, which provide it in /etc/apache2/envvars:
export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
We can't rely on it for CentOS.
And in portal Apache configuration, we have:
# See above to set LLNG user id in Apache logs
#CustomLog /var/log/apache2/portal.log llng
We should create a variable which will be replaced in the Makefile.
Other improvements:
- NameVirtualHost is deprecated in Apache 2.4, we can remove it
- We have a double / when replacing PORTALSTATICDIR in:
Alias /static/ __PORTALSTATICDIR__/