403-Forbidden You don't have permission to access this resource. Apache/2.4.52 (Ubuntu) Server at 172.105.102.120 Port 80

Setting up a Python-Django blog on Linode. After copying all files to server and configuring permissions, I get the following message: 403-Forbidden

You don't have permission to access this resource.
Apache/2.4.52 (Ubuntu) Server at 172.105.102.120 Port 80

1 Reply

I've looked a few forum discussions about the error you're seeing, but the one that most closely matches is this one here:

It explains that Django runs on port 8080 by default and offers some suggestions for resolving this issue. It is a bit old, so I'm not sure if anything has changed since then, but I think it's a good starting point.

Another Django user with a similar issue found that their home folder didn't have search execute permissions set correctly and moving it to a different folder fixed the issue. It's possible that you've set permissions for a subfolder but the parent directory doesn't have the right permissions, so I'd recommend looking into that as well.

Here are a few additional resources that could help:

Finally, you can also try to look at your Apache logs or other relevant server logs to see if you can get more information about the error.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct