Answer the question
In order to leave comments, you need to log in
Why can't I set up apache virtual hosts on CentOS 7?
In the folder where the rest of the .conf files are, I create a new site3.conf file with the following content:
<VirtualHost *:80>
ServerName otchet.org
ServerAlias www.otchet.org
DocumentRoot /home/otchet/html/otchet
AssignUserID otchet otchet
CustomLog /home/otchet/logs/otchet.org.access.log combined
ErrorLog /home/otchet/logs/otchet.org.error.log
DirectoryIndex index.php
<Directory /home/otchet/html/otchet>
Options +Includes -ExecCGI
AllowOverride All
Require all granted
</Directory>
</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