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
-- 
[EMAIL PROTECTED] mailing list

Reply via email to