Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I have created virtualhost using nginx but getting 403 Forbidden

I have set up a virtual host using nginx, but I am encountering a 403 Forbidden. This issue only occurs in Ubuntu 22.04, whereas the same configuration works fine on Ubuntu 20.04.

I want to solve 403 Forbidden error for nginx virtual host

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Due to the increased security in Ubuntu 22.04, many users are encountering the same issue. To resolve this, you need to add your user to the "www-data" group.

sudo usermod -g www-data <YOUR_USERNAME>

i.e sudo usermod -g www-data ubuntu
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading