Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 [ Directory index forbidden by rule ]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
mettallicat
n00b
n00b


Joined: 20 Aug 2003
Posts: 19
Location: Portugal -> Norte -> Felgueiras

PostPosted: Fri Sep 16, 2005 2:47 pm    Post subject: Apache2 [ Directory index forbidden by rule ] Reply with quote

Bem o problema é o seguinte:

Estou a tentar por uma pasta /home/lol/public_html ( http://localhost/~lol/ ) mostre os ficheiros que contem invez de carregar a pagina html ou php.

Quem diz '/home/lol/public_html' diz futuramente '/home/lol/public_html/htdocs'

podem ver a minha configuração em

http://pastebin.ca/23093

nao percebo o pk de nao dar.
_________________
A Litlle Black Cat
Back to top
View user's profile Send private message
Matheus Villela
Apprentice
Apprentice


Joined: 25 Oct 2003
Posts: 263

PostPosted: Fri Sep 16, 2005 4:05 pm    Post subject: Reply with quote

Essa parte:
Code:
<Directory /home/lol/public_html/>
        Options MultiViews -Indexes Includes FollowSymLinks
        AllowOverride None
<IfModule mod_access.c>
        Order deny,allow
        Allow from all
</IfModule>
</Directory>


É desnecessária, o que importa é o que tá em:
Code:
<Directory /home/*/public_html>
    AllowOverride All
    Options MultiViews -Indexes Includes FollowSymLinks
    <IfModule mod_access.c>
      Order allow,deny
      Allow from all
    </IfModule>
</Directory>


O "-Indexes" tá errado, ele não vai deixar ver a lista de diretórios, tem que ser "Indexes". Já pra não seguir um "index.html" da vida basta você adicionar "DirectoryIndex none", resumindo:
Code:
<Directory /home/*/public_html>
    AllowOverride All
    Options MultiViews Indexes Includes FollowSymLinks
    DirectoryIndex none
    <IfModule mod_access.c>
      Order allow,deny
      Allow from all
    </IfModule>
</Directory>


Depois disso pode deletar a primeira parte se preferir, talvez dê pra alterar o Indexes e o DirectoryIndex nela mas nem sei, aí tu vê o que é melhor pra ti :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum