From 6df2cd07d273bf6415bfd80be7f34f999d95ea3c Mon Sep 17 00:00:00 2001 From: Edison Su Date: Wed, 11 Jan 2012 18:18:16 -0800 Subject: [PATCH] bug 12130: add "Options -Indexes" in the root directory status 12130: resolved fixed --- patches/systemvm/debian/config/etc/init.d/cloud-early-config | 1 + 1 file changed, 1 insertion(+) diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config index abbfb8cd5ca..78ab20e14e5 100755 --- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config +++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config @@ -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() {