* [gentoo-user] apache upgrade default configuration - not explained correclty
@ 2007-09-08 2:10 Joseph
0 siblings, 0 replies; only message in thread
From: Joseph @ 2007-09-08 2:10 UTC (permalink / raw
To: gentoo-user
Enabling hosting from "/var/www/localhost/htdocs" is not explained
correctly in configuration files (correct me anybody if I missed
something) . This is the second time I got caught this this problem.
Default configuration for apache is as follow:
In file: modules.d/00_default_settings.conf
...
# We configure the "default" to be a very restrictive set of features.
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
In file: vhosts.d/default_vhost.include
...
<Directory "/var/www/localhost/htdocs">
...
AllowOverride All
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
</Directory>
This is grace a beauty but not practical for hosting. The statement
above in "00_default_settings.conf"
AllowOverride None
Order deny,allow
Deny from all
will not let anybody host any files on their system, nor there is any
explanation on what to do to enable hosting from
"/var/www/localhost/htdocs"
The solutions are to change in <Directory />
- changing "AllowOverride None" to "AllowOverride All"
or
- removing: Order deny,allow Deny from all
or adding below <Directory /> ....</Directory> another statement:
<Directory "/var/www/localhost/htdocs">
AllowOverride All
</Directory>
and that is what I have done. The statement "AllowOverride All" in
file: vhosts.d/default_vhost.include does not overwrite <Directory />
statement from file: modules.d/00_default_settings.conf
This is the second time I got myself caught with this problem after
upgrading apache.
#Joseph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-12 20:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-08 2:10 [gentoo-user] apache upgrade default configuration - not explained correclty Joseph
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox