mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
new apache configuration concept
This commit is contained in:
parent
67c43189af
commit
a2838f4bd7
1 changed files with 3 additions and 0 deletions
|
@ -813,10 +813,12 @@ namehost_ip_support() {
|
||||||
if [ "$WEB_SSL" = 'mod_ssl' ]; then
|
if [ "$WEB_SSL" = 'mod_ssl' ]; then
|
||||||
web_ssl_port=$(get_config_value '$WEB_SSL_PORT')
|
web_ssl_port=$(get_config_value '$WEB_SSL_PORT')
|
||||||
sed -i "$conf_ins i NameVirtualHost $ip:$web_ssl_port" $conf
|
sed -i "$conf_ins i NameVirtualHost $ip:$web_ssl_port" $conf
|
||||||
|
sed -i "$conf_ins i Listen $ip:$web_ssl_port" $conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
web_port=$(get_config_value '$WEB_PORT')
|
web_port=$(get_config_value '$WEB_PORT')
|
||||||
sed -i "$conf_ins i NameVirtualHost $ip:$web_port" $conf
|
sed -i "$conf_ins i NameVirtualHost $ip:$web_port" $conf
|
||||||
|
sed -i "$conf_ins i Listen $ip:$web_port" $conf
|
||||||
|
|
||||||
# Checking proxy support
|
# Checking proxy support
|
||||||
if [ "$PROXY_SYSTEM" = 'nginx' ]; then
|
if [ "$PROXY_SYSTEM" = 'nginx' ]; then
|
||||||
|
@ -838,6 +840,7 @@ namehost_ip_disable() {
|
||||||
#Checking web system
|
#Checking web system
|
||||||
if [ "$WEB_SYSTEM" = 'apache' ]; then
|
if [ "$WEB_SYSTEM" = 'apache' ]; then
|
||||||
sed -i "/NameVirtualHost $ip:/d" $conf
|
sed -i "/NameVirtualHost $ip:/d" $conf
|
||||||
|
sed -i "/Listen $ip:/d" $conf
|
||||||
|
|
||||||
# Checking proxy support
|
# Checking proxy support
|
||||||
if [ "$PROXY_SYSTEM" = 'nginx' ]; then
|
if [ "$PROXY_SYSTEM" = 'nginx' ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue