diff --git a/.gitattributes b/.gitattributes index 18b40726..59a0cadb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -477,6 +477,7 @@ install/upgrades/0.9.6.sql -text install/upgrades/0.9.7.sql -text install/upgrades/0.9.9.sql -text install/upgrades/1.0.1.php -text +install/upgrades/1.0.3.sql -text install/upgrades/1.0.sql -text install/upgrades/1.1.sql -text install/upgrades/README -text diff --git a/etc/alternc/templates/apache2/url.conf b/etc/alternc/templates/apache2/url.conf index 086ace82..67f293f0 100644 --- a/etc/alternc/templates/apache2/url.conf +++ b/etc/alternc/templates/apache2/url.conf @@ -6,6 +6,7 @@ KeepAlive Off RewriteEngine On + RewriteCond %{REQUEST_FILENAME} !/cgi-bin/ RewriteRule ^/(.*)$ %%redirect%%/$1 [R=301,L] diff --git a/install/upgrades/1.0.3.sql b/install/upgrades/1.0.3.sql new file mode 100644 index 00000000..71fc86d1 --- /dev/null +++ b/install/upgrades/1.0.3.sql @@ -0,0 +1,2 @@ +-- some sub_domaines entries are not tagged with the right account's UID : +UPDATE sub_domaines,domaines SET sub_domaines.compte = domaines.compte WHERE sub_domaines.domaine = domaines.domaine ; diff --git a/src/alternc_reload b/src/alternc_reload index 0122cb2a..d529ad1b 100755 --- a/src/alternc_reload +++ b/src/alternc_reload @@ -76,7 +76,9 @@ if [ ! -z "$RELOAD_ZONES" ]; then apache_reload ;; *) - $sudo rndc reload "$zone" || echo "Cannot reload bind for zone $zone" + # FIXME: should reload only concerned zones + #$sudo rndc reload "$zone" || echo "Cannot reload bind for zone $zone" + $sudo rndc reload || echo "Cannot reload bind for zone $zone" ;; esac done