LINUX.ORG.RU

История изменений

Исправление webmak, (текущая версия) :

sudo apache2ctl -S выдает:

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.1.50. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80                   is a NameVirtualHost
         default server site1.ru (/etc/apache2/sites-enabled/site1.ru.conf:1)
         port 80 namevhost site1.ru (/etc/apache2/sites-enabled/site1.ru.conf:1)
                 alias www.site1.ru
         port 80 namevhost site2.ru (/etc/apache2/sites-enabled/site2.ru.conf:1)
                 alias www.site2.ru
         port 80 namevhost phpmyadmin (/etc/apache2/sites-enabled/phpmyadmin.conf:1)
                 alias www.phpmyadmin
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex default: dir="/var/lock/apache2" mechanism=fcntl 
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: ENABLE_USR_LIB_CGI_BIN
User: name="www-data" id=33
Group: name="www-data" id=33

Тоесть он видит их

Исходная версия webmak, :

sudo apache2ctl -S выдает:

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.1.50. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80                   is a NameVirtualHost
         default server site1.ru (/etc/apache2/sites-enabled/site1.ru.conf:1)
         port 80 namevhost site1.ru (/etc/apache2/sites-enabled/site1.ru.conf:1)
                 alias www.site1.ru
         port 80 namevhost site2.ru (/etc/apache2/sites-enabled/site2.ru.conf:1)
                 alias www.site2.ru
         port 80 namevhost phpmyadmin (/etc/apache2/sites-enabled/phpmyadmin.conf:1)
                 alias www.phpmyadmin
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex default: dir="/var/lock/apache2" mechanism=fcntl 
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: ENABLE_USR_LIB_CGI_BIN
User: name="www-data" id=33
Group: name="www-data" id=33