
ThePinkShark
(usa Slackware)
Enviado em 05/04/2013 - 18:21h
"[warn] NameVirtualHost *:80 has no VirtualHosts" <= diz que ele não está encontrando nenhum virtual host dentro do arquivo /etc/apache/sites-avaiable/default com nome de 80.
Um exemplo de /etc/apache/sites-avaiable/default :
<VirtualHost *:TPS-HOST>
ServerAdmin ThePinkShark@vivaolinux.com.br
DocumentRoot /var/www
DirectoryIndex index.php index.html index.htm
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</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 ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Outra coisa dê preferenciar a iniciar o apache utilizando o comando:
apachectl start
ou ainda
apache2ctl start
Bom, caso seu arquivo esteja adequado a sua necessidade verifique se ele está sendo chamado pelo arquivo /etc/apache/ports.conf
Por exemplo:
NameVirtualHost *:TPS-HOST
Listen 80