Skip to content

Commit 6df2cd0

Browse files
Edison SuEdison Su
authored andcommitted
bug 12130: add "Options -Indexes" in the root directory
status 12130: resolved fixed
1 parent 0b6b8f7 commit 6df2cd0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

patches/systemvm/debian/config/etc/init.d/cloud-early-config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ setup_apache2() {
397397
[ -f /etc/apache2/ports.conf ] && sed -i -e "s/Listen .*:80/Listen $ip:80/g" /etc/apache2/ports.conf
398398
[ -f /etc/apache2/ports.conf ] && sed -i -e "s/Listen .*:443/Listen $ip:443/g" /etc/apache2/ports.conf
399399
[ -f /etc/apache2/ports.conf ] && sed -i -e "s/NameVirtualHost .*:80/NameVirtualHost $ip:80/g" /etc/apache2/ports.conf
400+
echo "Options -Indexes" > /var/www/html/.htaccess
400401
}
401402

402403
setup_redundant_router() {

0 commit comments

Comments
 (0)