Почему заводятся не все хосты ubuntu?

На ubuntu 16.04 установлены два сервера apache2 и nginx но почемуто перестали работать некоторые виртуальные хосты. вот собственно виртуальные хосты
рабочий apache
<VirtualHost *:8181>
    ServerAdmin admin@test.com
    ServerName onepage.lc
    ServerAlias www.onepage.lc
    DocumentRoot /var/www/onepage.lc/web
    ErrorLog /var/www/error.log
    CustomLog /var/www/access.log combined
    <Directory /var/www/onepage.lc/web>
	  Options Indexes FollowSymLinks Includes
	  AllowOverride All
	  Order allow,deny
	  Allow from all
	</Directory>
</VirtualHost>

nginx
server {
    server_name     onepage.lc www.onepage.lc;
    listen 80;
    listen [::]:80;
    root /var/www/onepage.lc/web;
    access_log  /var/www/nginx-access.log;
    error_log  /var/www/nginx-error.log;
    index index.php index.html;
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.2-fpm.sock;
 		}
    location / {
        try_files $uri $uri/ /index.php?$query_string;
        }

}

вот не рабочий apache
<VirtualHost *:8181>
    ServerAdmin admin@test.com
    ServerName yii2viber.dev
    ServerAlias www.yii2viber.dev
    DocumentRoot /var/www/yii2viber.dev/frontend/web
    ErrorLog /var/www/error.log
    CustomLog /var/www/access.log combined
    <Directory /var/www/yii2viber.dev>
	  Options Indexes FollowSymLinks Includes
	  AllowOverride All
	  Order allow,deny
	  Allow from all
	</Directory>
</VirtualHost>

вот nginx
server {
    server_name     yii2viber.dev www.yii2viber.dev;
    listen 80;
    listen [::]:80;
    root /var/www/yii2viber.dev/frontend/web;
    access_log  /var/www/nginx-access.log;
    error_log  /var/www/nginx-error.log;
    index index.php index.html;
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.2-fpm.sock;
 		}
    location / {
        try_files $uri $uri/ /index.php?$query_string;
        }
}


при входе на адрес cremea.lc перекидывает на адрес cremea.lc при входе на yii2viber.dev перехожу на адрес https://yii2viber.dev (это nginx) на апач http://cremea.lc:8181, то есть не понятно почему то перекидывает на https . Вопрос только почему так ? Не подскажите.
  • Вопрос задан
  • 53 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы