[FUGSPBR] OFF: Virtual hosts no Apache

Jeimerson C Chaves jeimerson em voetur.com.br
Ter Jun 18 09:55:23 BRT 2002


Caro amigo,

         Oque esta acontecendo e que vc tem que colocar a paginda default 
tmb como virtual senao ele sempre chamara a pagina padrao eu nao tenho as 
linha aqui comigo agora mais para a manha eu posso pegar em casa e estarei 
te passando.


TE+

At 19:19 15/06/02 -0300, you wrote:
>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



Mais detalhes sobre a lista de discussão freebsd