mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
added cgi support
This commit is contained in:
parent
c5a7bdc8d5
commit
3b019a4eb5
1 changed files with 29 additions and 0 deletions
|
@ -84,6 +84,21 @@ for domain in $domains; do
|
|||
$V_WEBTPL/apache_$template.sh $user $domain $ip $V_HOME $docroot
|
||||
fi
|
||||
|
||||
# Checking cgi
|
||||
cgi=$(get_web_domain_value '$CGI')
|
||||
if [ "$cgi" != 'yes' ]; then
|
||||
# Defining params for ScriptAlias
|
||||
search_phrase='ScriptAlias '
|
||||
str_repl=" #ScriptAlias /cgi-bin/"
|
||||
str_repl="$str_repl $V_HOME/$user/domains/$domain/cgi-bin/"
|
||||
change_web_config
|
||||
|
||||
# Defining params for Options
|
||||
search_phrase='Options '
|
||||
str_repl=' Options +Includes -Indexes -ExecCGI'
|
||||
change_web_config
|
||||
fi
|
||||
|
||||
# Checking ssl
|
||||
cert=$(get_web_domain_value '$SSL_CERT')
|
||||
if [ ! -z "$cert" ]; then
|
||||
|
@ -107,6 +122,20 @@ for domain in $domains; do
|
|||
if [ -x $V_WEBTPL/apache_$template.sh ]; then
|
||||
$V_WEBTPL/apache_$template.sh $user $domain $ip $V_HOME $docroot
|
||||
fi
|
||||
|
||||
# Checking cgi
|
||||
if [ "$cgi" != 'yes' ]; then
|
||||
# Defining params for ScriptAlias
|
||||
search_phrase='ScriptAlias '
|
||||
str_repl=" #ScriptAlias /cgi-bin/"
|
||||
str_repl="$str_repl $V_HOME/$user/domains/$domain/cgi-bin/"
|
||||
change_web_config
|
||||
|
||||
# Defining params for Options
|
||||
search_phrase='Options '
|
||||
str_repl=' Options +Includes -Indexes -ExecCGI'
|
||||
change_web_config
|
||||
fi
|
||||
fi
|
||||
|
||||
# Checking nginx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue