diff --git a/create_vhost.sh b/create_vhost.sh index e2a05fd..e9e0a2d 100755 --- a/create_vhost.sh +++ b/create_vhost.sh @@ -852,7 +852,9 @@ if [ -z "$_existing_vhost_config_file" ]; then done - if [[ -n "$(trim $COMMON_LOGFILE_DIR)" ]]; then + if $_suEXEC ; then + __log_dir=${_web_base_dir}/logs + elif [[ -n "$(trim $COMMON_LOGFILE_DIR)" ]]; then __log_dir="$COMMON_LOGFILE_DIR" else __log_dir=${_web_base_dir}/logs