public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Joseph <syscon@interbaun.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] apache upgrade default configuration - not explained correclty
Date: Fri, 07 Sep 2007 20:10:58 -0600	[thread overview]
Message-ID: <1189217458.13094.22.camel@localhost.localdomain> (raw)

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



                 reply	other threads:[~2007-09-12 20:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1189217458.13094.22.camel@localhost.localdomain \
    --to=syscon@interbaun.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox