Commit 6bbc55a2 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Load Apache modules needed for .htaccess

parent 6288ecad
all: httpd-conf all: httpd-conf httpd-modules
tar xf roundcubemail-1.4.8-complete.tar.gz -C /srv/www --strip-components=1 tar xf roundcubemail-1.4.8-complete.tar.gz -C /srv/www --strip-components=1
rm /srv/www/index.html rm /srv/www/index.html
install -v -Dm644 config.inc.php /srv/www/config install -v -Dm644 config.inc.php /srv/www/config
...@@ -6,6 +6,7 @@ all: httpd-conf ...@@ -6,6 +6,7 @@ all: httpd-conf
rm -rf /srv/www/installer rm -rf /srv/www/installer
install -v -m755 -o apache -g apache -d /var/lib/roundcube install -v -m755 -o apache -g apache -d /var/lib/roundcube
@echo "$$HTTPD_CONF" > /etc/httpd/conf/DirectoryIndex.conf @echo "$$HTTPD_CONF" > /etc/httpd/conf/DirectoryIndex.conf
@echo "$$HTTPD_MODULES" > /etc/httpd/conf/roundcube.conf
sed -i 's/^\([[:blank:]]*AllowOverride[[:blank:]]\).*/\1All/g' /etc/httpd/conf/DocumentRoot.conf sed -i 's/^\([[:blank:]]*AllowOverride[[:blank:]]\).*/\1All/g' /etc/httpd/conf/DocumentRoot.conf
chown -v -R apache:apache /srv/www chown -v -R apache:apache /srv/www
patch -Np1 -d /srv/www < roundcubemail-1.4.8-chgsaslpasswd_fix.patch patch -Np1 -d /srv/www < roundcubemail-1.4.8-chgsaslpasswd_fix.patch
...@@ -25,3 +26,13 @@ define HTTPD_CONF ...@@ -25,3 +26,13 @@ define HTTPD_CONF
# #
endef endef
export HTTPD_CONF export HTTPD_CONF
httpd-modules:
define HTTPD_MODULES
LoadModule rewrite_module /usr/lib/httpd/modules/mod_rewrite.so
LoadModule deflate_module /usr/lib/httpd/modules/mod_deflate.so
LoadModule expires_module /usr/lib/httpd/modules/mod_expires.so
LoadModule autoindex_module /usr/lib/httpd/modules/mod_autoindex.so
LoadModule headers_module /usr/lib/httpd/modules/mod_headers.so
endef
export HTTPD_MODULES
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment