cwalcott
02-27-2002, 12:29 PM
I am trying to set up multiple web sites using the default apache install and the server admin interface.
My first attempt was to create a second ethernet port to a different ip address. This is how it's done on windows. My understanding is that this is NOT how you do it on OSX. When I tried to create a second site in server admin based on this second ethernet port, the check box for the site would never stick.
Then, a friend told me to just create a second web site and assign the same IP address to it. He said this is a virtual host that goes by the domain name instead of the IP. I set up my DNS to have two of my domains assigned to the same IP address. I then created a second site in the server admin program. Problem was, the web server stoped working. I tried restarting it many times but it would never start up. I checked the /var/logs/httpd/error_log file and found this at the end:
[Tue Feb 26 20:24:35 2002] [warn] NameVirtualHost 192.168.1.2:16080 has no VirtualHosts
[Tue Feb 26 20:24:35 2002] [crit] (48)Address already in use: make_sock: could not bind to address 192.168.1.2 port 16080
So, I turned off the second site in server admin and the web server started up fine.
Clearly I am not doing this right. Can anyone point me to directions on how to do this?
Thanks!
- chris walcott
My first attempt was to create a second ethernet port to a different ip address. This is how it's done on windows. My understanding is that this is NOT how you do it on OSX. When I tried to create a second site in server admin based on this second ethernet port, the check box for the site would never stick.
Then, a friend told me to just create a second web site and assign the same IP address to it. He said this is a virtual host that goes by the domain name instead of the IP. I set up my DNS to have two of my domains assigned to the same IP address. I then created a second site in the server admin program. Problem was, the web server stoped working. I tried restarting it many times but it would never start up. I checked the /var/logs/httpd/error_log file and found this at the end:
[Tue Feb 26 20:24:35 2002] [warn] NameVirtualHost 192.168.1.2:16080 has no VirtualHosts
[Tue Feb 26 20:24:35 2002] [crit] (48)Address already in use: make_sock: could not bind to address 192.168.1.2 port 16080
So, I turned off the second site in server admin and the web server started up fine.
Clearly I am not doing this right. Can anyone point me to directions on how to do this?
Thanks!
- chris walcott