wok rev 1428
squirrelmail: update apache conf
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 28 18:49:54 2008 +0000 (2008-09-28) |
parents | 5fe0d4cca0be |
children | e14946791c05 |
files | squirrelmail/receipt |
line diff
1.1 --- a/squirrelmail/receipt Sun Sep 28 18:49:06 2008 +0000 1.2 +++ b/squirrelmail/receipt Sun Sep 28 18:49:54 2008 +0000 1.3 @@ -64,6 +64,27 @@ 1.4 fi 1.5 fi 1.6 fi 1.7 + # Configure apache server 1.8 + if [ -f $1/etc/apache/httpd.conf ]; then 1.9 + if [ ! -f $1/etc/apache/conf.d/squirrelmail ]; then 1.10 + cat > $1/etc/apache/conf.d/squirrelmail <<EOT 1.11 +<IfModule mod_alias.c> 1.12 + Alias /squirrelmail /usr/share/squirrelmail 1.13 +</IfModule> 1.14 +<DirectoryMatch /usr/share/squirrelmail/> 1.15 + DirectoryIndex index.php 1.16 + Options +FollowSymLinks 1.17 + AllowOverride None 1.18 + Order allow,deny 1.19 + Allow from all 1.20 +</DirectoryMatch> 1.21 +EOT 1.22 + if [ -z "$1" ]; then 1.23 + # Start Web server. 1.24 + /etc/init.d/apache restart 1.25 + fi 1.26 + fi 1.27 + fi 1.28 } 1.29 1.30 repack_cleanup()