<VirtualHost *:80>
ServerAdmin webmaster@domain.com
DocumentRoot /home/kir/domain.com
ServerName domain.com
ServerAlias *.domain.com
#if SSL required
SSLEngine on
SSLCertificateFile /etc/httpd/certs/domain.com/server.crt
SSLCertificateKeyFile /etc/httpd/certs/domain.com/server.key
ErrorLog logs/domain.com-error_log
CustomLog logs/domain.com-access_log common
Options -Indexes +FollowSymLinks
<Directory /home/kir/domain.com>
RewriteEngine on
Order allow,deny
AllowOverride all
Allow from all
</Directory>
</VirtualHost>
The parent directory of your DirectoryRoot
must be accessible by Apache, so you must make sure that Apache got execute rights for /home/kir
chmod 0755 /home/kir
or
chown kir:apache /home/kir
chmod 0750 /home/kir
If Running Security Enhanced Linux (SELinux)
Another possibility for this error is that you are running SELinux (Security Enhanced Linux), inwhich case you need to use chcon
to apply the proper security context to the directory. One easy way to do this is to copy from a directory that does work for example /var/www/
chcon -R --reference=/var/www /path/to/webroot