directory directive for /var/www should be in 000-default.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Won't Fix
|
Low
|
Unassigned |
Bug Description
After installing apache, the default site configuration file is /etc/apache2/
DocumentRoot /var/www
The directive for that directory (the <Directory /var/www> block) is in a different config file (apache2.conf).
In order to serve from another directory (e.g. /home/me/
1. it makes more sense to collect the /var/www stuff in one file
2. it'll easier to figure out how to move the document root
3. if you miss out on the "Require all granted" configuration, presently found only in apache2.conf, you'll get 403's that will drive you nuts--this is not documented in many tutorials found on the web, nor in https:/
description: | updated |
Thank you for taking the time to file this bug and helping to make Ubuntu better.
I don't think it makes sense for Ubuntu to deviate from Debian's packaging on this point. Please can you check if your report also applies to Debian, and if so then file a bug against the apache2 package in Debian?
Also, are you aware that in Trusty, the document root has moved to /var/www/html? See http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 730382 for details.