united states of america usa  linkedinfacebook   Call Us Today: (786) 646-6461

403 Forbidden after changing DocumentRoot directory

apache server

Q. I am getting a Forbidden 403 error after I've changed the DocumentRoot in Apache for my domain. What do I do?

A. This is a security feature on the Apache running on Ubuntu (and Debian). The solution is quite simple:


Edit the apache2.conf (/etc/apache2/apache2.conf) and add the new directory to default security model:

<Directory /your/new/dir>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted

Restart apache and you're done.

ALT Technical Consulting provides support and maintenance for Apache, IIS and Nginx servers. Contact us for help with your IT systems.


Last updated Dec 2, 2018