In some apache file (site-enabled) you can see :
<VirtualHost 172.20.30.40:80>
DocumentRoot /www/example1
ServerName www.example.com
</VirtualHost>
Another :
<VirtualHost *:80>
DocumentRoot /www/example1
ServerName www.example.com
</VirtualHost>
What's the difference between this two ligne :
<VirtualHost 172.20.30.40:80>
<VirtualHost *:80>
Usually i always use : *:80
for the VirtualHost. But one of my friend on is server need to put the IP of the server. The *:80
doesn't work.
Do you know why ? Did it's a special config ? There is a way to know when we need to put the ip or not ?