Commit cf95c1da authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Configure httpd DirectoryIndex

parent 1bc8eaa6
all: all: httpd-conf
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
rm /srv/www/config/config.inc.php.sample rm /srv/www/config/config.inc.php.sample
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
chown -v -R apache:apache /srv/www chown -v -R apache:apache /srv/www
sed -e 's|^.*DirectoryIndex .*| DirectoryIndex index.php|' -i /etc/httpd/httpd.conf
httpd-conf:
define HTTPD_CONF
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php
</IfModule>
#
endef
export HTTPD_CONF
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