



Вообще поднял VPN Сервак (УРА)
По лакалке ip 192.168.X.X я мог подключаться к сайту

Конечно же пошел в конфиг /etc/apache2/sites-available/moodle.conf добавил ip в <VirtualHost 192.168.х.х 10.8.0.1:80>
и ни фига, вернул конфиг обратно как был <VirtualHost 192.168.х.х:80> тоже ни фига
Код: Выделить всё
<VirtualHost 192.168.х.х 10.8.0.1:80>
ServerAdmin admin@moodle
DocumentRoot /var/www/html/moodle/
ServerName moodle
ServerAlias www.moodle
<Directory /var/www/html/moodle/>
Options +FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Код: Выделить всё
scool11@ServerMoodle:~$ sudo service apache2 status
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Fri 2018-12-07 19:47:42 +05; 11min ago
Process: 1553 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 1557 (apache2)
Tasks: 6 (limit: 2279)
CGroup: /system.slice/apache2.service
├─1557 /usr/sbin/apache2 -k start
├─1558 /usr/sbin/apache2 -k start
├─1559 /usr/sbin/apache2 -k start
├─1560 /usr/sbin/apache2 -k start
├─1561 /usr/sbin/apache2 -k start
└─1562 /usr/sbin/apache2 -k start
дек 07 19:47:42 ServerMoodle systemd[1]: Starting The Apache HTTP Server...
дек 07 19:47:42 ServerMoodle apachectl[1553]: AH00558: apache2: Could not reliably determine the server's fully qu
дек 07 19:47:42 ServerMoodle systemd[1]: Started The Apache HTTP Server.
Код: Выделить всё
scool11@ServerMoodle:~$ apachectl -t -D DUMP_VHOSTS
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
10.8.0.1:80 moodle (/etc/apache2/sites-enabled/moodle.conf:3)
*:80 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)