Forbidden Error #11877
Replies: 2 comments 2 replies
-
First, try to identify whether this is a problem with Apache or a problem with Netbox. If you run Netbox in development mode, does it work? What exact URL are you looking at when you see the "Forbidden" message? What does Apache's log files say (e.g. /var/log/apache/error.log)? Does "dmesg" show any permission errors? Are files in Apart from the static files, Apache doesn't do anything except proxy the HTTP request to Netbox's gunicorn - so there should be no other permission issues around Apache, as long as it's not being constrained by SELinux or Apparmor (which "dmesg" would show) |
Beta Was this translation helpful? Give feedback.
-
Thank you for replying I just tried reinstalling following the documentation. I must have missed something as it still isn't working. I'm able to get apache to respond with its Apache2 Default Page. The problem comes when I try to get it to access Netbox. When running Netbox in development mode, the output shows that it works: `python3 manage.py runserver 0.0.0.0:8000 --insecure System check identified no issues (0 silenced). I'm installing this remotely, so I can't try the 0.0.0.0:8000 in a browser at this time. The URL I am using is https://netbox.risenlifeutah.org Within /var/log/apache2/error.log I have several lines that say:
Although there was nothing in the installation steps stating to change ownership of the static directory, I tried to see if that made a difference and it did not
Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to install netbox on Ubuntu 22.04 using Apache. After I've gotten everything installed, when I try to visit the URL for my installation, I get a Forbidden error
`Forbidden
You don't have permission to access this resource.
`
It makes me think that something doesn't have correct ownership or permissions. Currently Netbox has ownership of root except for the media folder. From what I can tell, there's no place that says to change the ownership of other files in the Netbox documentation.
What am I missing?
Thanks
Jason
Beta Was this translation helpful? Give feedback.
All reactions