public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-user] apache upgrade default configuration - not explained correclty
@ 2007-09-08  2:10 99% Joseph
  0 siblings, 0 replies; 1+ results
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	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2007-09-08  2:10 99% [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