can two hosts share the same IP Address without a conflict. This is how my /etc/hosts looks like :-
$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 debian 127.0.1.1 mini
Now as can be seen both mini and debian share the same IP Address.
Now debian is my hostname.
$ hostname debian
while mini is a virtual host for an apache site.
/etc/apache2/sites-available$ head minidebconfindia.conf <VirtualHost mini:80> ServerAdmin webmaster@localhost
This is in Apache 2.4. I am just not sure whether this is good or not. A friend of mine has the same setup (with a different hostname) on Apache 2.2 and that works without issue.
Looking forward to know if this is valid or should I be doing any changes ?