Sponsored Content
Full Discussion: where is DocumentRoot ?
Top Forums Web Development where is DocumentRoot ? Post 302388999 by pludi on Friday 22nd of January 2010 05:55:46 AM
Old 01-22-2010
Check in /etc/apache2/sites-enabled, there should be a file 000-default, wherein a DocumentRoot is defined. The default is /var/www I think.
 

We Also Found This Discussion For You

1. Red Hat

Httpd service not starting... Error "Documentroot must be a directory"

I am working with CentOS 6.5. Indeed the document root /var/www/html is a directory and it is a mount point of one file system (not NFS) I observed, if I unmount that file system, I could able to start httpd. Is it restricted in CentOS 6.X that the Documentroot can not be a mount point? ... (5 Replies)
Discussion started by: atanubanerji
5 Replies
A2ENSITE(8)						      System Manager's Manual						       A2ENSITE(8)

NAME
a2ensite, a2dissite - enable or disable an apache2 site / virtual host SYNOPSIS
a2ensite [site] a2dissite [site] DESCRIPTION
This manual page documents briefly the a2ensite and a2dissite commands. a2ensite is a script that enables the specified site (which contains a <VirtualHost> block) within the apache2 configuration. It does this by creating symlinks within /etc/apache2/sites-enabled. Likewise, a2dissite disables a site by removing those symlinks. It is not an error to enable a site which is already enabled, or to disable one which is already disabled. The default site is handled specially: The resulting symlink will be called 000-default in order to be loaded first. EXAMPLES
a2dissite default Disables the default site. FILES
/etc/apache2/sites-available Directory with files giving information on available sites. /etc/apache2/sites-enabled Directory with links to the files in sites-available for enabled sites. SEE ALSO
apache2ctl(8). AUTHOR
This manual page was written by Stefan Fritsch <sf@debian.org> (based on the a2enmod manual page by Daniel Stone <daniel@sfarc.net>) for the Debian GNU/Linux distribution. 8 June 2007 A2ENSITE(8)
All times are GMT -4. The time now is 06:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy