Webservers (Apache, nginx etc.) need to know which folder is specifically dedicated to a given domain (e.g. example.com).

Usually it is one of the following:

  • www
  • htdocs
  • public_html
  • httpdocs
  • httpsdocs
  • wwwroot


This is an example how DocumentRoot is defined in the Apache web server virtual host configuration for a given site.

DocumentRoot /var/www/vhosts/example.com/www

Free WordPress Sandbox

Do you want to get a free test/Sandbox WordPress site? Join Now


If something needs correcting in this article, you have an idea or suggestion always let us know