Check vhosts syntax in apache2

srv:/# cat /etc/apache2/envvars | grep -v -e "^#"

export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2.pid
srv:/# apache2 -t -D DUMP_VHOSTS
VirtualHost configuration:
xx.xx.xx.xx:80 is a NameVirtualHost
default server first.yourdomain.ru (/etc/apache2/sites-enabled/first.yourdomain.ru:1)
port 80 namevhost first.yourdomain.ru (/etc/apache2/sites-enabled/first.yourdomain.ru:1)
port 80 namevhost second.yourdomain.ru (/etc/apache2/sites-enabled/second.yourdomain.ru:1)
Syntax OK

No comments:

Post a Comment