The FreeBSD Diary |
(TM) | Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link. |
Apache - virtual hosts (continued)
22 October 1998
|
See also Apache topics. Note: this document was originally written using ml.org as the main domain. When ml.org disappeared, I started using .cx. I have since changed all references to ml.org to .cx. For information on how I did that, see httpd/dns. Note: I've since stopped using freebsddiary.cx for my test examples. I now use http://test.freebsddiary.org. Note: I've let racingsystem.cx lapse. I now longer use it. |
Virtual servers
|
Despite my previous attempts at getting virtual websites going, they never worked.
So today I started trying it again. Here's what I added to the bottom of: my Apache
configuration file (/usr/local/etc/apache/httpd.conf)
Where 192.168.0.45 is the IP address of my FreeBSD box. Then I restarted apache. Then I browsed to the following two locations: You will note that the IP address for each of these domains is the same. That's the benefit of virtual servers. |