How do I change Apache's DocumentRoot?
Solution 1:
Did you set the new directory in the default document root? Should be about line 292.
288 # DocumentRoot: The directory out of which you will serve your
289 # documents. By default, all requests are taken from this directory, but
290 # symbolic links and aliases may be used to point to other locations.
291 #
292 DocumentRoot "/var/www/html"
293
294 #
295 # Each directory to which Apache has access can be configured with respect
296 # to which services and features are allowed and/or disabled in that
297 # directory (and its subdirectories).
298 #
299 # First, we configure the "default" to be a very restrictive set of
300 # features.
301 #
302 <Directory />
303 Options FollowSymLinks
304 AllowOverride None
305 </Directory>
306
307 #
308 # Note that from this point forward you must specifically allow
309 # particular features to be enabled - so if something's not working as
310 # you might expect, make sure that you have specifically enabled it
311 # below.
312 #
313
314 #
315 # This should be changed to whatever you set DocumentRoot to.
316 #
317 <Directory "/var/www/html">