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

duvida apache2 virtualhosts...



Olá,

Preciso habilitar um site virtual no apache2 só que quando o habilito
ele vira o site padrão.
abaixo meu httpd-vhosts.conf:

------------------------------
NameVirtualHost *:80


#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#


 <VirtualHost *:80>
     ServerAdmin root@teste.com.br
     DocumentRoot "/var/www/teste/htdocs/"
     ServerName www.teste.com.br
     ServerAlias teste.com.br/direve *.teste.com.br
     ErrorLog "logs/teste-error_log"
     CustomLog "logs/teste-access_log" common


<Directory "/var/www/teste/htdocs">
         Options Indexes FollowSymLinks MultiViews
         AllowOverride None
         Order allow,deny
         allow from all
     </Directory>


     ScriptAlias /cgi-bin/ /var/www/teste/cgi-bin/

<Directory "/var/www/teste/cgi-bin">
         AllowOverride None
         Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
         Order allow,deny
         Allow from all
     </Directory>

</VirtualHost>
----------------------------------
Alguma sugestão?


P.S.-por motivos "extra-conjugais" o apache foi compilado através do
binário.


Obrigado,
Marcelo


Reply to: