Ferme le ticket #1173

This commit is contained in:
Alan Garcia 2010-12-20 16:56:37 +00:00
parent 4fd0c76dd2
commit ff029755d5
3 changed files with 11 additions and 0 deletions

View File

@ -216,6 +216,7 @@ EOF
# Add access to the management panel
ln -nsf /var/alternc/bureau /var/alternc/dns/$FQDN_LETTER/$FQDN
ln -nsf /var/alternc/bureau /var/alternc/dns/$(echo $PUBLIC_IP|cut -d '.' -f 1)/$PUBLIC_IP
# Bind stuff
touch /var/alternc/bind/automatic.conf /var/alternc/bind/slaveip.conf

View File

@ -15,3 +15,10 @@
php_admin_flag register_globals on
AddDefaultCharset ISO-8859-1
</Directory>
<Directory /var/alternc/dns/%%public_ip_begin%%/%%public_ip%%>
php_admin_flag safe_mode_gid off
php_admin_flag safe_mode off
php_admin_flag register_globals on
AddDefaultCharset ISO-8859-1
</Directory>

View File

@ -128,6 +128,8 @@ if [ -z "$MONITOR_IP" ]; then
MONITOR_IP="127.0.0.1"
fi
PUBLIC_IP_BEGIN=$(echo $PUBLIC_IP|cut -d '.' -f 1)
# XXX: I assume this is secure if /tmp is sticky (+t)
# we should have a better way to deal with templating, of course.
SED_SCRIPT=`mktemp`
@ -135,6 +137,7 @@ cat > $SED_SCRIPT <<EOF
s\\%%hosting%%\\$HOSTING\\;
s\\%%fqdn%%\\$FQDN\\;
s\\%%public_ip%%\\$PUBLIC_IP\\;
s\\%%public_ip_begin%%\\$PUBLIC_IP_BEGIN\\;
s\\%%internal_ip%%\\$INTERNAL_IP\\;
s\\%%monitor_ip%%\\$MONITOR_IP\\;
s\\%%ns1%%\\$NS1_HOSTNAME\\;