In Directadmin (I used it before) when we create a reseller, a new user with a home directory was created and user could add domains in a home directory like /home/user/domains/example.com/public_html
How i can add /home/user/public_html as virtual host to apache web server? I want to config apache like direct admin to use home directory.
Im new on Centos 6.5 and i'm trying to config a web server. My OS is clear (no any configs, just DNS) and SElinux is disabled in /etc/sysconfig/selinux. I have one ip for my VPS.
Now my config for httpd is below.
<VirtualHost domain-1.com:80>
DocumentRoot /home/user/domains/domain-1.com/public_html
ServerName domain-1.com
</VirtualHost>
When i add this config, i get forbbiden error in http://domain-1.com
and http://server-ip
UPDATE I added the following code to apache conf.d but the error is alive.
<IfModule mod_userdir.c>
UserDir enabled user
UserDir public_html
</IfModule>
<Directory /home/*/public_html>
Options Indexes Includes FollowSymLinks
Require all granted
AllowOverride All
Allow from all
Order deny,allow
</Directory>