Changeset 3087


Ignore:
Timestamp:
09/21/11 15:04:57 (3 years ago)
Author:
benjamin
Message:

we replace the openbasedir to the document root by one on the root of relevant alternc account. Restore the behavior of pre-1.0 version. Now you can go back to the other behavior (1.0 one) by changing the vhost.conf template

Location:
alternc/branches/stable-1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • alternc/branches/stable-1.0/etc/alternc/templates/apache2/vhost.conf

    r3050 r3087  
    44 
    55  <Directory "%%document_root%%"> 
    6     php_admin_value open_basedir "%%document_root%%:/usr/share/php/:/var/alternc/tmp:/tmp" 
     6    php_admin_value open_basedir "%%account_root%%:/usr/share/php/:/var/alternc/tmp:/tmp" 
    77    Options +MultiViews -FollowSymLinks +SymLinksIfOwnerMatch 
    88    AllowOverride AuthConfig FileInfo Limit Options Indexes 
  • alternc/branches/stable-1.0/src/functions_hosting.sh

    r3050 r3087  
    5959    local user_letter=`print_user_letter "$USER"` 
    6060    local DOCUMENT_ROOT="${HTML_HOME}/${user_letter}/${USER}/$TARGET_DIR" 
     61    local ACCOUNT_ROOT="${HTML_HOME}/${user_letter}/${USER}/" 
    6162    local FILE_TARGET="$VHOST_DIR/${user_letter}/$USER/$FQDN.conf" 
    6263 
     
    8788        -e "s#%%fqdn%%#$FQDN#g" \ 
    8889        -e "s#%%document_root%%#$DOCUMENT_ROOT#g" \ 
     90        -e "s#%%account_root%%#$ACCOUNT_ROOT#g" \ 
    8991        -e "s#%%redirect%%#$REDIRECT#g" \ 
    9092        $TMP_FILE 
Note: See TracChangeset for help on using the changeset viewer.