dj Posted June 11, 2007 Share Posted June 11, 2007 Hey I recently flattened and rebuilt my web server which was using apache. I had hoped to simple copy & paste the virtual host settings over from the old httpd.conf file to the new one. However i've come accross a problem. No matter what subdomain i type in, it always takes me to the first virtualhost set. The settings worked fine before i rebuilt the server. So im wondering if there been any changes to the way apache handles virtual hosts. Sorry if this is a stupid question. Thanks Link to comment https://forums.phpfreaks.com/topic/55160-solved-virtual-hosts-on-2059/ Share on other sites More sharing options...
dj Posted June 11, 2007 Author Share Posted June 11, 2007 Sorted this out, checked the logs which said "perhaps you need a namevirtualhost directive". Just added namevirtualhost 192.168.1.100:80 and all is well. Thanks Link to comment https://forums.phpfreaks.com/topic/55160-solved-virtual-hosts-on-2059/#findComment-272689 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.