Name-based virtual hosting in Apache
- by malvikus
I'd like to set up name-based virtual hosting in Apache, but I don't have DNS name (local private network). Thus I want to get something like that:
http://192.168.0.1/wiki - First virtual host - wiki.
http://192.168.0.1/redmine - Second virtual host - redmine.
As I suggest I can be achievable by using ServerName option in section of both vhosts. But in Apache documentation has no mention that I can use for FQDN IP-addr. Is it possible? How can I reach my wishes?
P.S.: I want to share my sites on the same subnet only. Thus any who can ping me can enter http://my_ip/wiki and get wiki, http://my_ip/redmine and get redmine.