diff options
| author | Amy Fong <amy.fong@windriver.com> | 2014-04-11 09:48:52 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-04-11 13:45:27 -0400 |
| commit | cea82c3460ebcbf4506694b606057c2a7f62d271 (patch) | |
| tree | 33498b769ee1e714e25d6d8ba8779da11e75dde5 /meta-openstack | |
| parent | 1efbee3d421996f558333987a10af5ecd9e79bcc (diff) | |
| download | meta-cloud-services-cea82c3460ebcbf4506694b606057c2a7f62d271.tar.gz | |
Apache2 changes
Configure apache's ServerName
- modify apache2's configuration file for ServerName to 127.0.0.1:80
In 2.4.7, add symlinks for htdocs and log directory to maintain backward compat
with older versions.
Signed-off-by: Amy Fong <amy.fong@windriver.com>
Diffstat (limited to 'meta-openstack')
| -rw-r--r-- | meta-openstack/recipes-extended/apache2/apache2_2.4.7.bbappend | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-openstack/recipes-extended/apache2/apache2_2.4.7.bbappend b/meta-openstack/recipes-extended/apache2/apache2_2.4.7.bbappend new file mode 100644 index 0000000..7aca867 --- /dev/null +++ b/meta-openstack/recipes-extended/apache2/apache2_2.4.7.bbappend | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | INC := "${@int(PRINC) + 1}" | ||
| 2 | |||
| 3 | do_install_append() { | ||
| 4 | sed -i -e 's/#ServerName.*$/ServerName 127.0.0.1:80/' ${D}${sysconfdir}/apache2/httpd.conf | ||
| 5 | |||
| 6 | # default layout for htdocsdir in 2.4.7 is different, create the following for | ||
| 7 | # backward compatibility reasons | ||
| 8 | |||
| 9 | mkdir -p ${D}${datadir}/${BPN}/default-site | ||
| 10 | ln -sf ../htdocs ${D}${datadir}/${BPN}/default-site/htdocs | ||
| 11 | |||
| 12 | sed -i '30i if [ ! -e /var/log/apache2 ]; then ln -sf /var/apache2/logs/ /var/log/apache2; fi' ${D}/etc/init.d/apache2 | ||
| 13 | } | ||
| 14 | |||
| 15 | FILES_${PN} += "${datadir}/${BPN}/default-site" | ||
