E
E
Eugene M2018-09-29 12:16:00
Apache HTTP Server
Eugene M, 2018-09-29 12:16:00

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

1 answer(s)
H
Hanneman, 2018-09-29
@hotwind

I'm posting in response to close.
Expose
Then
And Check
sestatus

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question