Connect the apache configuration files to the command:
include / usr / local / apache / conf / sites / *. conf
Create a file with two virtual hosts.
<VirtualHost *>
ServerAdmin webmaster@as.com
ServerName site.com
ServerAlias site.com
DocumentRoot "/var/www/pachko1/site.com"
</VirtualHost>
<VirtualHost *>
ServerAdmin webmaster@as.com
ServerName site1.com
ServerAlias site1.com
DocumentRoot "/var/www/site1/site1.com"
</VirtualHost>
But when accessing site1.com, the site.com folder always opens.
If they change places, when accessing site.com site1.com will open
The pen rule always works, why is this happening?
Sorry for my English.
source
share