[FUGSPBR] OFF: Virtual hosts no Apache -agradeco, mas....

Norberto Rozas norberto em kw.com.br
Sáb Jun 15 23:11:54 BRT 2002


Eu agradeço a sua resposta ( e a do Irado tbém...)....

Mas o negócio é o seguinte: Eu estou usando Virtual Host IP-based, ou 
seja, a partir de
vários endereços de IPs virtuais mesmo:

192.168.0.100
192.168.0.101
192.168.0.102
192.168.0.103 .....

O problema é que , mesmo configurando interfaces virtuais com netmask 
/32, conforme sugeriu o A. Torres,
o Apache insiste em direcionar as páginas para o mesmo diretório....



O comando "BindAdress" não é mais usado?
Como devo configurar o Listener? Listener 80 ou Listener 
192.168.0.100:80 ? (esta última conflita...)


Help!








Tiago N. Sampaio wrote:

>vc não precisa colocar alias na sua placa de rede :-)
>Pode ser o mesmo ip para todos os dominio...
>cria os dominos no dns e depois entra pelo dominio no apache:
>
>http://www.bleble.com.br
>http://www.blabla.com.br
>
>Vai funcionar direitinho...
>
>T+
>Qualquer coisa pode perguntar em pvt...
>
>----- Original Message -----
>From: "Norberto Rozas" <norberto em kw.com.br>
>To: "fugspbr" <fugspbr em fugspbr.org>
>Sent: Saturday, June 15, 2002 7:19 PM
>Subject: [FUGSPBR] OFF: Virtual hosts no Apache
>
>
>>Pessoal,
>>
>>recorri à lista pois já tentei tutoriais, livros, chutes, etc, etc...
>>
>>Estou configurando o Apache para múltiplos domínios (IP based)
>>
>>Para isso, criei em rc.conf:
>># Interfaces virtuais
>>
>>ifconfig_ep0_alias0="inet 192.168.0.100  netmask 255.255.255.0"
>>ifconfig_ep0_alias1="inet 192.168.0.101  netmask 255.255.255.0"
>>
>>
>>E setei httpd.conf conforme lista abaixo.
>>
>>O problema é que qualquer IP que eu tento (192.168.0.100 , 192.168.0.101
>>, etc...) a página que aparece é a Default (main) do Apache.
>>
>>É como se o Apache estivesse ignorando os comando <Virtual Host
>>192.168.0.101:80>
>>
>>
>>Alguma dica?
>>
>>Segue o httpd.conf:
>>
>>
>>### Section 1: Global Environment
>>#
>>ServerRoot "/usr/local"
>>Listen 80
>>#
>>#########
>>
>>### Section 2: 'Main' server configuration
>>#
>>User www
>>Group www
>></IfModule>
>>
>>ServerName blablabla.com.br
>>
>># symbolic links and aliases may be used to point to other locations.
>>#
>>#DocumentRoot "/home/www"
>>
>><Directory />
>>    Options FollowSymLinks
>>    AllowOverride None
>></Directory>
>>
>>#
>><Directory "/home/www">
>>
>>#
>>
>>#
>># Aliases: Add here as many aliases as you need (with no limit). The
>>format is
>># Alias fakename realname
>>#
>># Note that if you include a trailing / on fakename then the server will
>># require it to be present in the URL.  So "/icons" isn't aliased in this
>># example, only "/icons/".  If the fakename is slash-terminated, then the
>>
>
>># realname must also be slash terminated, and if the fakename omits the
>># trailing slash, the realname must also omit it.
>>#
>># We include the /icons/ alias for FancyIndexed directory listings.  If
>>
>you
>
>># do not use FancyIndexing, you may comment this out.
>>#
>>#Alias /icons/ "/usr/local/www/icons/"
>>
>>#<Directory "/usr/local/www/icons">
>>#    Options Indexes MultiViews
>>#    AllowOverride None
>>#    Order allow,deny
>>#    Allow from all
>>#</Directory>
>>##################
>>
>>
>>### Section 3: Virtual Hosts
>>#
>># Use name-based virtual hosting.
>>#
>>#NameVirtualHost *
>>
>># blablabla.com.br
>><VirtualHost 192.168.0.100:80>
>>    ServerAdmin webmaster em blablabla.com.br
>>    DocumentRoot /home/www/blablabla
>>    ServerName blablabla.com.br
>>#    ErrorLog logs/webgas-error_log
>>#    CustomLog logs/webgas-access_log common
>></VirtualHost>
>>
>># bleble.com.br
>><VirtualHost 192.168.0.101:80>
>>    ServerAdmin webmaster em bleble.com.br
>>    DocumentRoot /home/www/bleble
>>    ServerName bleble.com.br
>>#    ErrorLog logs/webgas-error_log
>>#    CustomLog logs/webgas-access_log common
>></VirtualHost>
>>
>>#
>>##############################################
>>
>>
>>
>>
>>
>>Valeu!, Obrigado!
>>
>>______________________________________________
>>http://www2.fugspbr.org/mailman/listinfo/fugspbr
>>
>
>______________________________________________
>http://www2.fugspbr.org/mailman/listinfo/fugspbr
>
>

-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://www.fug.com.br/pipermail/freebsd/attachments/20020615/4c88fa54/attachment.html>


Mais detalhes sobre a lista de discussão freebsd