[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problemas com virtualhosts no apache2



Caros,
Estou configurando algus hosts em meu domínio interno, configurei no apache2.conf a linha include com os meis domínios virtuais:
Include /etc/apache2/sites-enabled/nuke
Include /etc/apache2/sites-enabled/mrtg
Include /etc/apache2/sites-enabled/nagios
Include /etc/apache2/sites-enabled/phpmyadmin

Depois crie um arquivo em etc/apache2/sites-available e linkei esses mesmos arquivos em /etc/apache2/sites-enabled/. baixo segue um exemplo de um dos meus arquivos:

NameVirtualHost 192.168.1.99:80
<VirtualHost 192.168.1.99:80>
   #SSLEngine On
   #SSLCertificateFile /etc/apache2/ssl/apache.pem
ServerAdmin leandro@leandromoreira.eti.br
   DocumentRoot /var/www/nuke
       ServerName nuke.spyder.local
       <Directory />
       Options FollowSymLinks
       AllowOverride None
   </Directory>
   <Directory /var/www/>
       Options Indexes FollowSymLinks MultiViews
       AllowOverride None
       Order allow,deny
       allow from all
       # This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
       # RedirectMatch ^/$ /apache2-default/
   </Directory>

   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
   <Directory "/usr/lib/cgi-bin">
       AllowOverride None
       Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
       Order allow,deny
       Allow from all
   </Directory>

   ErrorLog /var/log/apache2/error_insidetec.log

   # Possible values include: debug, info, notice, warn, error, crit,
   # alert, emerg.
   LogLevel warn

   CustomLog /var/log/apache2/access_insidetec.log combined
   ServerSignature On

   Alias /doc/ "/usr/share/doc/"
   <Directory "/usr/share/doc/">
       Options Indexes MultiViews FollowSymLinks
       AllowOverride None
       Order deny,allow
       Deny from all
       Allow from 127.0.0.0/255.0.0.0 ::1/128
   </Directory>

</VirtualHost> O que ta pegando e o seguinte, quando restarto meu apache recebo na tela a seguinte mensagem:

spyder:/etc/apache2/sites-available# /etc/init.d/apache2 restart
Forcing reload of web server: Apache2[Sun Jun 18 19:57:20 2006] [warn] NameVirtualHost 192.168.1.99:80 has no VirtualHosts [Sun Jun 18 19:57:20 2006] [warn] NameVirtualHost 192.168.1.99:80 has no VirtualHosts [Sun Jun 18 19:57:20 2006] [warn] NameVirtualHost 192.168.1.99:80 has no VirtualHosts [Sun Jun 18 19:57:21 2006] [warn] NameVirtualHost 192.168.1.99:80 has no VirtualHosts [Sun Jun 18 19:57:21 2006] [warn] NameVirtualHost 192.168.1.99:80 has no VirtualHosts [Sun Jun 18 19:57:21 2006] [warn] NameVirtualHost 192.168.1.99:80 has no VirtualHosts

O apache sobe mas dos 4 hosts que eu criei so consigo acessar um. O detalhe e que se eu comento s ops includes (no caso são 4 se comento 3) o Apache sobe sem erro e conseigo acessar o meu virtualhost sem problema. Já pesquizen na net mas naão consegui solução será que algume pode me ajudar?

Att.






--
Leandro Moreira Linux Networking Telefone: +55 (32) 9197-7909 E-mail/MSN: leandro@leandromoreira.eti.br



Reply to: