Locate the Document Root of the Web Server

The default directory of the data provided by Apache is /srv/www/htdocs.

This directory is also called the DocumentRoot of the web server. After the installation, it contains the Apache example pages, which are displayed above.

You can replace the data in the DocumentRoot directory to display your own web server content. Because the web server runs with the user id wwwrun, you have to make sure that this user has read access to files in the DocumentRoot directory.

If you create subdirectories in DocumentRoot, you can access those subdirectories with the following web address scheme:


If no specific file is requested in the address, Apache looks for a file with the name index.html. You can change the name of this default file in the Apache configuration files.

Was this article helpful?

0 0

Post a comment