Dominios Virtuais Apache2

Crie o arquivo de configuração do dominio virtual

vi /etc/httpd/conf.d/wp.conf
<VirtualHost *:80>
  DocumentRoot /var/www/html
  ServerAdmin contato@nickollas.com
</VirtualHost>

<VirtualHost *:80>
  DocumentRoot /var/www/html/wp/
  ServerName wp.nickollas.com
  ServerAdmin contato@nickollas.com
  ErrorLog logs/wp.nickollas.com-error.log
  CustomLog logs/wp.nickollas.com-access.log combined
</VirtualHost>

Reinicie o apache

apachectl restart
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s