M
Majumder somaditya
Guest
Recentemente, descobri que o Apache2 Virtual Hosting é realmente fácil no Linux.Eu usei distribuição Ubuntu Hoary, que pode ser denominado como atualizado e polido avtar do Debian.Os passos para habilitar VirtualHost no Apache2 é a seguinte --
1.Instale o Apache-2
# apt-get install apache2
2.Adicionar site específico arquivo de configuração em / etc/apache2/sites-available
# vi / etc/apache2/sites-available/example.org
ServerAdmin webmaster (at) example.org
DocumentRoot / home / exemplo / www / example.org
ServerName example.org: 80
CustomLog / home/example/www/log/apache2-access.log combinado
ErrorLog / home/example/www/log/apache2-error.log3.Ativar o site
# example.org a2ensite
4.Reinicie o Apache
# / etc/init.d/apache2 restart
Assim que estiver feito, aponte seu navegador para http://example.org
1.Instale o Apache-2
# apt-get install apache2
2.Adicionar site específico arquivo de configuração em / etc/apache2/sites-available
# vi / etc/apache2/sites-available/example.org
ServerAdmin webmaster (at) example.org
DocumentRoot / home / exemplo / www / example.org
ServerName example.org: 80
CustomLog / home/example/www/log/apache2-access.log combinado
ErrorLog / home/example/www/log/apache2-error.log3.Ativar o site
# example.org a2ensite
4.Reinicie o Apache
# / etc/init.d/apache2 restart
Assim que estiver feito, aponte seu navegador para http://example.org