enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #03159
[Bug 1285101] [NEW] directory directive for /var/www should be in 000-default.conf
Public bug reported:
After installing apache, the default site configuration file is
/etc/apache2/sites-available/000-default.conf. The site defined therein
serves files from /var/www, qua the
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/public_html),
I'd have to change /var/www to the new path in both locations. I suggest
moving the <Directory /var/www> block to /etc/apache2/sites-
available/000-default.conf because
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://help.ubuntu.com/13.10/serverguide/httpd.html
** Affects: apache2 (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
After installing apache, the default site configuration file is
/etc/apache2/sites-available/000-default.conf. The site defined therein
serves files from /var/www, qua the
- DocumentRoot /var/www
+ 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/public_html),
I'd have to change /var/www to the new path in both locations. I suggest
moving the <Directory /var/www> block to /etc/apache2/sites-
available/000-default.conf because
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'e that will drive you nuts--this is not documented in many tutorials found on the web, nor in https://help.ubuntu.com/13.10/serverguide/httpd.html
+ 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://help.ubuntu.com/13.10/serverguide/httpd.html
--
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to apache2 in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1285101
Title:
directory directive for /var/www should be in 000-default.conf
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1285101/+subscriptions
Follow ups
References