Answer the question
In order to leave comments, you need to log in
How to configure a domain in Apache via SSH?
Hello!
I will say in advance that I had no business with VPS or cloud hosting before.
Actually there is a cloud hosting.
1 server. It has VestaCP installed.
2 server. Without any panel, but all the necessary components for operation are installed manually.
1 question.
How to change the domain parameter on a server with VestaCP via SSH.
The domain has already been added to the panel.
You need to configure mask support in Apache, that is, write the ServerAlias *.domain.com
Apache Config specified in the vestacp documentation
/etc/apache2/apache2.conf
/etc/httpd/conf.d/*
/home/$user/conf/web/apache2.conf
/home/$user/conf/web/sapache2.conf (ssl)
Answer the question
In order to leave comments, you need to log in
I figured it out myself with the help of console commands + vi, which I edited.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question