1 |
Esta tarde he estado configurando vhost por primera vez y me he encontrado con el mismo problema. La solución es bien sencilla: |
2 |
|
3 |
Acércate a /etc/apache2/conf/commonapache2.conf. Allí te encuentras con lo siguiente: |
4 |
|
5 |
<Directory /> |
6 |
Options -All -Multiviews |
7 |
AllowOverride None |
8 |
<IfModule mod_access.c> |
9 |
Order deny,allow |
10 |
Deny from all |
11 |
</IfModule> |
12 |
</Directory> |
13 |
|
14 |
Pues bien, puedes dejarlo así: |
15 |
|
16 |
<Directory /> |
17 |
Options -All -Multiviews |
18 |
AllowOverride None |
19 |
# <IfModule mod_access.c> |
20 |
# Order deny,allow |
21 |
# Deny from all |
22 |
# </IfModule> |
23 |
</Directory> |
24 |
|
25 |
|
26 |
Si te fijas bien, mod_access.c controla los accesos para / (todo). En la documentación mira lo que te dice: |
27 |
|
28 |
Deny,Allow |
29 |
The Deny directives are evaluated before the Allow directives. Access is allowed by default. Any client which does not match a Deny directive or does match an Allow directive will be allowed access to the server. |
30 |
|
31 |
Ahí tienes la explicación. Toda la información sobre mod_access.c en http://httpd.apache.org/docs-2.0/mod/mod_access.html. Y nada, solucionado, :). |
32 |
|
33 |
|
34 |
-- |
35 |
Jesús García Crespo (aka Sevein) |
36 |
http://www.sevein.com |
37 |
correo@××××××.com |
38 |
|
39 |
GnuGP key ID: E2DB17E8 (pgp.escomposlinux.org) |