Re: [users@httpd] Diagnosing HTTP 401 and 403 Err ors in Apache — Common Misconfigurations

Alessandro Vesely <[email protected]> Mon, 2 Mar 2026 18:13:57 +0100
Newsgroups gmane.comp.apache.user
Message-ID <[email protected]>
Thanks for the heads up.

On Mon 02/Mar/2026 10:52:54 +0100 Vahid Shaik wrote:
> 2. Incorrect ownership after deployment — after deploying with rsync or git 
> pull, file ownership changes to the deploying user instead of www-data. Files 
> are readable by the owner but not by the Apache worker process. Fix: chown -R 
> www-data:www-data /var/www/html/ after every deploy.


Should be enough also to chmod -R a+r /var/www/html/ methinks.


Best
Ale
--