I'm trying to set up 2 domains on a 1 server: _Debian Linux _Apache2
Create the following file: pclinx.conf, then enable with a2ensite, so that it is enabled and then restart apache2.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.pclinx.com.br
ServerAlias *.pclinx.com.br
DocumentRoot /var/www/html/pclinx
<Directory />
Options FollowSymLinks Indexes
AllowOverride AuthConfig
</Directory>
<Directory /var/www/html/pclinx>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
In / var / www / html / pclinx is the index.html file .... but I do not know why I can not visualize anything, you can not see the index.html.
In / etc / hosts 127.0.0.1 www.pclinx.com.br
Website: www.pclinx.com.br