diff --git a/conf/lamp b/conf/lamp index 9e4439b..dc5547e 100644 --- a/conf/lamp +++ b/conf/lamp @@ -373,7 +373,7 @@ vhost_list(){ else echo "Apache virtual host not found. You can create a new Apache virtual host with command: lamp add" fi - ls ${apache_location}/conf/vhost/ | grep ".conf$" | grep -v "none" | sed 's/.conf//g' + ls ${apache_location}/conf/vhost/ | grep ".conf$" | grep -v "default" | sed 's/.conf//g' } vhost_del(){ diff --git a/include/apache.sh b/include/apache.sh index fa067bd..bbea155 100644 --- a/include/apache.sh +++ b/include/apache.sh @@ -94,7 +94,6 @@ config_apache(){ mv ${apache_location}/conf/extra/httpd-vhosts.conf ${apache_location}/conf/extra/httpd-vhosts.conf.bak mkdir -p ${apache_location}/conf/vhost/ - touch ${apache_location}/conf/vhost/none.conf cat > /etc/logrotate.d/httpd < ${apache_location}/conf/extra/httpd-vhosts.conf < +EOF + + cat > ${apache_location}/conf/vhost/default.conf < ServerName localhost -ServerAlias localhost DocumentRoot ${web_root_dir} SetOutputFilter DEFLATE