Question

Forbidden when trying download file

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.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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: -

This comment has been deleted