Como os amigos da lista já disseram, dá uma olhada na documentação, e
acho que vc está confundindo alguns conceitos.
localhost = 127.0.0.1 = a própria máquina
ou seja... se eu da minha máquina tentar acessar o endereço localhost,
vai apontar para a minha própria máquina e não para o servidor.
NameVirtualHost é para vc definir um nome (endereço) pelo qual o seu
webserver vai responder.
Se vc está acessando pelo IP, pra que definir o VirtualHost ?
Como já disseram, coloque as pastas dentro de /var/www/htdocs ou veja na
documentação sobre Alias
Será que fui mais simpático dessa vez ? :-P
======================================
CyberCrow
Conhecimento é Poder !
Quando voce perde a mente limitada
Voce liberta a sua vida
http://cybercrow.blogspot.com
======================================
1. Try to find an answer by searching the archives of the forum you plan to
post to.
2. Try to find an answer by searching the Web.
3. Try to find an answer by reading the manual.
4. Try to find an answer by reading a FAQ.
5. Try to find an answer by inspection or experimentation.
6. Try to find an answer by asking a skilled friend.
7. If you're a programmer, try to find an answer by reading the source code.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM/L/U d- s-: a- C++ LSU++++ P+ L+++ E--- W++ N w--
O-- M- V- PS PE- Y PGP++ t 5 X++ R tv- b++ DI D+
G++ e- h* r y+
-------END GEEK CODE BLOCK------
alexspe wrote:
> q simpatico hehe
> cara fui atras
> parece uma coisa logica, mas nao esta funcionando por isso vim pedir
>
> On 9 out, 20:07, Molinero <[EMAIL PROTECTED]> wrote:
>
>> localhost = 127.0.0.1
>>
>> ======================================
>> CyberCrow
>> Conhecimento é Poder !
>>
>> Quando voce perde a mente limitada
>> Voce liberta a sua vida
>>
>> http://cybercrow.blogspot.com
>> ======================================
>>
>> 1. Try to find an answer by searching the archives of the forum you plan
>> to post to.
>> 2. Try to find an answer by searching the Web.
>> 3. Try to find an answer by reading the manual.
>> 4. Try to find an answer by reading a FAQ.
>> 5. Try to find an answer by inspection or experimentation.
>> 6. Try to find an answer by asking a skilled friend.
>> 7. If you're a programmer, try to find an answer by reading the source
>> code.
>>
>> -----BEGIN GEEK CODE BLOCK-----
>> Version: 3.12
>> GCM/L/U d- s-: a- C++ LSU++++ P+ L+++ E--- W++ N w--
>> O-- M- V- PS PE- Y PGP++ t 5 X++ R tv- b++ DI D+
>> G++ e- h* r y+
>> -------END GEEK CODE BLOCK------
>>
>> alexspe wrote:
>>
>>> queria saber como faço para o apache "servir" 3 pastas diferentes
>>> de maneira q eu possa acessar pelo navegador deste jeito
>>> http://192.168.1.1/pasta1
>>> http://192.168.1.1/pasta2
>>> http://192.168.1.1/pasta3
>>>
>>> testei com essa config mas nao funcionou
>>>
>>> NameVirtualHost *
>>>
>>> <VirtualHost *>
>>> ServerName localhost
>>> DocumentRoot /home/alexsp/pasta1
>>> </VirtualHost>
>>>
>>> <VirtualHost *>
>>> ServerName localhost
>>> DocumentRoot /home/alexsp/pasta2
>>> </VirtualHost>
>>>
>>> <VirtualHost *>
>>> ServerName localhost
>>> DocumentRoot /home/alexsp/pasta3
>>> </VirtualHost>
>>>
>>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
GUS-BR - Grupo de Usuários de Slackware Brasil
http://www.slackwarebrasil.org/
http://groups.google.com/group/slack-users-br
-~----------~----~----~----~------~----~------~--~---