V
V
Vanes Ri_Lax2016-05-19 09:11:30
Apache HTTP Server
Vanes Ri_Lax, 2016-05-19 09:11:30

Why can't I set up a virtual host?

Hello,
I'm trying to set up virtual hosts on a VPS. there is Debian.
I do everything according to the article here pacificsky.ru/os/linux/67-apache2-debian-8-nastroy...
As a result, when I enter the command
a2ensite domen.ru
, it gives me
ERROR: Site domen.ru does not exist!
why it can be?
Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2016-05-19
@vanesxl

a2ensite is simply a perl script that only works with filenames ending .conf
mv /etc/apache2/sites-available/domen.ru /etc/apache2/sites-available/domen.ru.conf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question