I have an Ubuntu 14.04 server at http://images.example.com
with this in /etc/apache2/sites-enabled/richblockspoorblocks.com.conf
:
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName example.com
ServerAlias images.example.com
Header set Access-Control-Allow-Origin "*"
DocumentRoot /home/username/var/www/example.com/public_html
ErrorLog /home/username/var/www/example.com/logs/error.log
CustomLog /home/username/var/www/example.com/logs/access.log combined
</VirtualHost>
I have a file /home/username/var/www/example.com/public_html/test.txt
.
But when I navigate my browser to http://images.example.com/test.txt
, I get a 403 forbidden error.
Forbidden
You don't have permission to access /test.txt on this server.
Apache/2.4.7 (Ubuntu) Server at images.example.com Port 80
Here's what I see when I run ls -la
while in ~/
:
drwxrwxr-x 3 www-data username 4096 May 20 21:32 var
error.log
only has a client denied by server configuration
message.
I've already run apache2 restart
.
What must I change to see test.txt
in my browser?