Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cyber Security Cards › Revision Cards

Changing the Document Root

Changing the Document Root The document root is the folder where the web server finds your website files. Example: move it from /var/www/html to /var/www/portfolio . Change root (Nginx) or DocumentRoot (Apache), test the config, reload. Ask 3 questions: 1. Is every folder on the path 755 and the fil

Changing the Document Root The document root is the folder where the web server finds your website files. Example: move it from /var/www/html to /var/www/portfolio . Change root (Nginx) or DocumentRoot (Apache), test the config, reload. Ask 3 questions: 1. Is every folder on the path 755 and the fil
Changing the Document Root · Download PNG
Read card text

What this card says

What it is

The document root is the folder where the web server finds your website files.

Example: move it from /var/www/html to /var/www/portfolio.

How

Change root (Nginx) or DocumentRoot (Apache), test the config, reload.

If you get 403

Ask 3 questions:

1. Is every folder on the path 755 and the file 644? (namei -l)

2. Is the path in the config exactly right?

3. Is the SELinux label right? (ls -Z)

Learn more in the lesson: 8.6 Changing the Document Root

See all Ravi Sir's Cyber Security Cards