I am trying to download a file using curl from a machine running apache2. My site (000-default) configuration looks like this:
<VirtualHost *:80>
DocumentRoot /home/user/files/
<Directory /home/user/files/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
From another machine on the same network I do:
curl http://my-share/sample.text -o "test.txt"
I then get:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 301 100 301 0 0 4198 0 --:--:-- --:--:-- --:--:-- 4239
but if I cat the content of the file is contains:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /sample.textconfig
on this server.</p>
<hr>
<address>Apache/2.2.16 (Debian) Server at my-share Port 80</address>
</body></html>
I can ssh to the my-share debian server just fine. Why can't I access the file, is it a firewall issue?