bug 12130: add "Options -Indexes" in the root directory

status 12130: resolved fixed
This commit is contained in:
Edison Su 2012-01-11 18:18:16 -08:00
parent 0b6b8f7e46
commit 6df2cd07d2

View File

@ -397,6 +397,7 @@ setup_apache2() {
[ -f /etc/apache2/ports.conf ] && sed -i -e "s/Listen .*:80/Listen $ip:80/g" /etc/apache2/ports.conf
[ -f /etc/apache2/ports.conf ] && sed -i -e "s/Listen .*:443/Listen $ip:443/g" /etc/apache2/ports.conf
[ -f /etc/apache2/ports.conf ] && sed -i -e "s/NameVirtualHost .*:80/NameVirtualHost $ip:80/g" /etc/apache2/ports.conf
echo "Options -Indexes" > /var/www/html/.htaccess
}
setup_redundant_router() {