[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache2.2 / apache2.4 config



On Thu, Jul 17, 2014 at 9:11 AM, Brian May wrote:

> Anyone got any better ideas?

Something like this for the configuration:

/etc/apache2/conf-available/someconf-2.x.conf:
# All the common config options here

/etc/apache2/conf-available/someconf-2.2.conf:
Allow from all
Include /etc/apache2/conf-available/someconf-2.x.conf

/etc/apache2/conf-available/someconf-2.4.conf:
Require all granted
Include /etc/apache2/conf-available/someconf-2.x.conf

Something like this for the postinst:

if [ -x /usr/sbin/a2enconf ] ; then
  a2enconf someconf-2.4
else
  ln -sf ../conf-available/someconf-2.2.conf
/etc/apache2/conf.d/someconf-2.2.conf
fi

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


Reply to: