Question

403 error (forbidden) for images on Apache Server running Ubuntu 18.04

Posted February 11, 2020 1.1k views
ApacheUbuntu 18.04

I understand that this is caused by permissions error. Except when I changed my site theme and added new images some of the images did not load and returned a 403 error. The ones previously on the site (before the theme change) still load but all the new ones don’t. I can add images to other subdomains but not index.html or it will return a 403 error.

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.

×
1 answer

Hi @ramvandermeer,

Please provide us with your Vhost file for the website.

Having said that, this doesn’t mean it’s a problem with the Vhost file and it can be due to SELinux Access Control. As this is quite the long topic, I’ll recommend checking out DigitalOcean’s Tutorial about configuring Apache on Ubuntu servers - https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-18-04

It should provide you with the steps on how to configure Apache first and then a proper Vhost file with the proper permissions.

Regards,
KDSys

by Justin Ellingwood
by Kathleen Juell
The Apache HTTP server is the most widely-used web server in the world. It provides many powerful features including dynamically loadable modules, robust media support, and extensive integration with other popular software. In this guide, we'll explain how to install an Apache web server on your Ubuntu 18.04 server.
Submit an Answer