Answer the question
In order to leave comments, you need to log in
How to add virtual hosts to Apache on CentOS?
Someone advised to do according to this article https://serveradmin.ru/ustanovka-lamp-apache-php-m... so I did it according to it.
When I add the /etc/httpd/conf.d/site1.ru.conf file to the mcedit file, the server stops working in general
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
<VirtualHost *:80>
ServerName site1.ru
ServerAlias www.site1.ru
DocumentRoot /web/site1.ru/www
<Directory /web/site1.ru/www>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /web/site1.ru/logs/error.log
CustomLog /web/site1.ru/logs/access.log common
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question