B
B
Bobur Bakhritdinov2015-12-07 04:46:27
linux
Bobur Bakhritdinov, 2015-12-07 04:46:27

NameVirtualHost has no VirtualHosts apache?

When restarting apache it throws an error,


[Mon Dec 07 06:39:12 2015] [warn] NameVirtualHost ip_adress:80 has no VirtualHosts
[Mon Dec 07 06:39:12 2015] [warn] NameVirtualHost ip_adress:443 has no VirtualHosts
... waiting [Mon Dec 07 06:39:13 2015] [warn] NameVirtualHost ip_adress:80 has no VirtualHosts
[Mon Dec 07 06:39:13 2015] [warn] NameVirtualHost ip_adress:443 has no VirtualHosts

The error appeared after enabling the modules:

sudo a2enmod deflate headers expires

I tried to solve it myself:
I did it like here:
stackoverflow.com/questions/27703550/warn-namevirt...
and here:
www.linux.org.ru/forum/general/9497242
Links created on sites-enabled/000-default-ssl sites-enabled/000-default
Specified virtualhostname _default_:448 on file 000-default-ssl
What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2015-12-07
@BuriK666

you have somewhere in the config written NameVirtualHost ip_adress:80, but nowhere

<VirtualHost ip_adress:80>
.....
</VirtualHost>

either add a VirtualHost or remove the extra NameVirtualHost

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question