Name-based virtual hosting in Apache
Posted
by
malvikus
on Server Fault
See other posts from Server Fault
or by malvikus
Published on 2012-11-29T16:52:04Z
Indexed on
2012/11/29
17:06 UTC
Read the original article
Hit count: 156
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.
© Server Fault or respective owner