Apache virtual host

I develop my own website engine on my local computer in a folder named /home/angelica/http
Whenever it reached a stable state I would ftp the updates to my online server 198.91.87.195

My local version I had it set up as a virtual host on my local area network by the name of “quiet-pc”, but I had to reinstall Manjaro this morning and I can’t get my virtual host to work. (It says You don’t have permission to access the requested directory even though I have read and write for everyone on that folder.

Here is my /etc/httpd/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin rsperduta@gmail.com
DocumentRoot “/home/angelica/http”
ServerName quiet-pc
ServerAlias quiet-pc
ErrorLog “/var/log/httpd/quiet-pc-error.log”
CustomLog “/var/log/httpd/quiet-pc-access.log” common
</VirtualHost>

Can anyone spot what I’m missing please… I bet its something really simple but I just can’t remember how I did it before.

Thanks in advance for suggestions

You also need to make sure that the http user can enter your home folder (/home/angelica). If that is denied, the http user can’t access a folder in your home even if the user is allowed to do that.

Usually you don’t want to give access to other user to your home. However, if you want to, add the http user to your group and make sure your group can access your home. ( chmod 750 /home/angelica ). Check out ls -l /home to know which group owns your home folder.

An alternative would be to run the httpd as your user.

1 Like