Report this

What is the reason for this report?

Forbidden when trying download file

Posted on November 8, 2014

I have a directory which contains files. I can access that directory (domain.com/xxx) but I cannot download files in (domain.com/xxx/file.ex). When I click on the file, appear the message “403 Forbidden. You do not have permission to access this server /xxx/file.ex”. It also occurs on the main site.

Is there something wrong with the apache settings? But its fresh install.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

tail /usr/local/apps/apache/logs/error_log

[Sat Nov 08 06:43:39 2014] [warn] Init: (domain.com:443) You configured HTTP(80) on the standard HTTPS(443) port! [Sat Nov 08 06:43:39 2014] [notice] SIGHUP received. Attempting to restart [Sat Nov 08 06:43:39 2014] [notice] Digest: generating secret for digest authentication ... [Sat Nov 08 06:43:39 2014] [notice] Digest: done [Sat Nov 08 06:43:39 2014] [notice] Apache/2.2.29 (Unix) DAV/2 mod_ssl/2.2.29 OpenSSL/1.0.1j configured -- resuming normal operations [Sat Nov 08 06:43:38 2014] [warn] Init: (domain.com:443) You configured HTTP(80) on the standard HTTPS(443) port! [Sat Nov 08 06:43:38 2014] [notice] SIGHUP received. Attempting to restart [Sat Nov 08 06:43:38 2014] [notice] Digest: generating secret for digest authentication ... [Sat Nov 08 06:43:38 2014] [notice] Digest: done [Sat Nov 08 06:43:38 2014] [notice] Apache/2.2.29 (Unix) DAV/2 mod_ssl/2.2.29 OpenSSL/1.0.1j configured -- resuming normal operations [Sat Nov 08 06:43:21 2014] [warn] Init: (domain.com:443) You configured HTTP(80) on the standard HTTPS(443) port! [Sat Nov 08 06:43:21 2014] [warn] Init: (domain.com:443) You configured HTTP(80) on the standard HTTPS(443) port! [Sat Nov 08 06:43:21 2014] [notice] Digest: generating secret for digest authentication ... [Sat Nov 08 06:43:21 2014] [notice] Digest: done [Sat Nov 08 06:43:21 2014] [notice] Apache/2.2.29 (Unix) DAV/2 mod_ssl/2.2.29 OpenSSL/1.0.1j configured -- resuming normal operations

tail /home/user/www/xxx/file.ex

File: 'file.ex' Size: 102762578 Blocks: 200712. IO Block: 4096 regular file Device: a030b621h/2687546913d Inode: 5248063 Links: 1 Access: (0600/-r-w-------) Uid: ( 1000/user) Gid: ( 1000/user) Access: 2014-10-31 06:05:41.426000000 -0400 Modify: 2014-10-31 06:05:41.426000000 -0400 Change: 2014-11-08 10:10:21.748126663 -0500 Birth: -

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.