Hey People,
I am having problems getting the virtual host part working on my Apache2 running on Windows 2000 Pro. I just started palying with it yesterday so I am real new to it. So far I have configured PHP4 which I have tested OK, but when I try to go to a virtual host it goes back to the default screen. I have bound 5 private IP's to the NIC and then added them to the conf file to test it out. (By the way this is just a system I am setting up so I can learn PHP.) On one of my other workstations I have added the first domain to my host file and can ping it fine. Here is my VirtualHost section of my httpd.conf file:
<VirtualHost 192.168.2.230:80>
ServerAdmin Admin@lsinet.com
DocumentRoot "C:/ ServerName lantecsystems.com
ErrorLog logs/LSIHost.lantecsystems.com-error_log
CustomLog logs/LSIHost.lantecsystems.com-access_log common
</VirtualHost>
<VirtualHost 192.168.2.231:80>
ServerAdmin Admin@lsinet.com
DocumentRoot ServerName CJKolanda.CJKolanda.com
ErrorLog logs/CJKolanda.CJKolanda.com-error_log
CustomLog logs/CJKolanda.CJKolanda.com-access_log common
</VirtualHost>
<VirtualHost 192.168.2.232:80>
ServerAdmin Admin@lsinet.com
DocumentRoot ServerName Mortgage.MortgageandLoans.com
ErrorLog logs/Mortgage.MortgageandLoans.com-error_log
CustomLog logs/Mortgage.MortgageandLoans.com-access_log common
</VirtualHost>
As you can see I have changed the first one a couple of times copying what I have seen in others conf file such as using c: in "". The is in two places now. One is of the root C:\ and the other is in the Apache2 directory. I will end up deleting one of them when I am done and get it working. I have an index.html file in the lantecsystems.com directory which has been tested under IIS. Any ideas on getting this to work? Is there another part of the conf file that tells the system to use ip virtual hosts?
Thanks,
Zych
I am having problems getting the virtual host part working on my Apache2 running on Windows 2000 Pro. I just started palying with it yesterday so I am real new to it. So far I have configured PHP4 which I have tested OK, but when I try to go to a virtual host it goes back to the default screen. I have bound 5 private IP's to the NIC and then added them to the conf file to test it out. (By the way this is just a system I am setting up so I can learn PHP.) On one of my other workstations I have added the first domain to my host file and can ping it fine. Here is my VirtualHost section of my httpd.conf file:
<VirtualHost 192.168.2.230:80>
ServerAdmin Admin@lsinet.com
DocumentRoot "C:/ ServerName lantecsystems.com
ErrorLog logs/LSIHost.lantecsystems.com-error_log
CustomLog logs/LSIHost.lantecsystems.com-access_log common
</VirtualHost>
<VirtualHost 192.168.2.231:80>
ServerAdmin Admin@lsinet.com
DocumentRoot ServerName CJKolanda.CJKolanda.com
ErrorLog logs/CJKolanda.CJKolanda.com-error_log
CustomLog logs/CJKolanda.CJKolanda.com-access_log common
</VirtualHost>
<VirtualHost 192.168.2.232:80>
ServerAdmin Admin@lsinet.com
DocumentRoot ServerName Mortgage.MortgageandLoans.com
ErrorLog logs/Mortgage.MortgageandLoans.com-error_log
CustomLog logs/Mortgage.MortgageandLoans.com-access_log common
</VirtualHost>
As you can see I have changed the first one a couple of times copying what I have seen in others conf file such as using c: in "". The is in two places now. One is of the root C:\ and the other is in the Apache2 directory. I will end up deleting one of them when I am done and get it working. I have an index.html file in the lantecsystems.com directory which has been tested under IIS. Any ideas on getting this to work? Is there another part of the conf file that tells the system to use ip virtual hosts?
Thanks,
Zych