I have a virtual host set up on my Ubuntu server:
<VirtualHost *:80>
ServerAdmin email@gmail.com
ServerName dailysongfix.com
ServerAlias www.dailysongfix.com
DirectoryIndex index.php index.html
DocumentRoot /var/www/dailysongfix/public
# Custom log file locations
LogLevel warn
ErrorLog /var/log/apache2/dailysongfix/error_log
CustomLog /var/log/apache2/dailysongfix/access_log combined
</VirtualHost>
If I go to http : dailysongfix . com I get a forbidden error. This is probably an issue with my directory permissions...so I went over to /var/www
Here are my permissions:
ls -al /var
drwxr-xr-x 3 root root 4096 May 26 22:47 www
ls -al /var/www/
drwxr-xr-x 3 root root 4096 May 26 22:47 .
drwxr-xr-x 14 root root 4096 May 26 22:46 ..
drwxr-xr-x 3 root www-data 4096 May 26 22:53 dailysongfix
ls -al /var/www/dailysongfix/
drwxr-xr-x 3 root www-data 4096 May 26 22:53 .
drwxr-xr-x 3 root root 4096 May 26 22:47 ..
drwxr-sr-x 2 root www-data 4096 May 26 22:59 public
I also have this in my httpd.conf
User www-data
Group www-data
Does anyone know how to fix this?
Thanks!