Spunkyasp Posted July 6, 2008 Share Posted July 6, 2008 HI i am trying to set up virtual hosts and i ran into a problem. May someone tell me what i have to edit in my http conf file? Also this is my http-vhosts in the extras folder. Listen 80 NameVirtualHost *:80 <VirtualHost *:80> ServerName ***.******.com ServerAlias *******.com *.*******.com DocumentRoot ******** </VirtualHost> <VirtualHost *:80> ServerName ***.******.com ServerAlias ******.com *.******.com DocumentRoot ******** </VirtualHost> By the way i run apache 2.2.9 Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/ Share on other sites More sharing options...
wildteen88 Posted July 7, 2008 Share Posted July 7, 2008 In order for the extra/httpd-vhosts.conf file to be read by Apache you need to remove the # on this line in the httpd.conf #Include conf/extra/httpd-vhosts.conf Save the httpd.conf and restart Apache. Test your virtual hosts Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/#findComment-583776 Share on other sites More sharing options...
Spunkyasp Posted July 9, 2008 Author Share Posted July 9, 2008 it didnt work Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/#findComment-584937 Share on other sites More sharing options...
peranha Posted July 9, 2008 Share Posted July 9, 2008 windows or linux machine?? Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/#findComment-584944 Share on other sites More sharing options...
Spunkyasp Posted July 9, 2008 Author Share Posted July 9, 2008 windows xp pro, everything worked fine until i moved from xampp and installed everything myself. I can pay someone if they can help me Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/#findComment-584947 Share on other sites More sharing options...
peranha Posted July 9, 2008 Share Posted July 9, 2008 Have you set up your hosts file in C:\Windows\System32\drivers\etc\Hosts Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/#findComment-584948 Share on other sites More sharing options...
Spunkyasp Posted July 9, 2008 Author Share Posted July 9, 2008 maybe not probaly i use a hostname can you tell me how to properly set it up? That is probaly the problem. Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/#findComment-584949 Share on other sites More sharing options...
peranha Posted July 9, 2008 Share Posted July 9, 2008 Look at this topic http://www.phpfreaks.com/forums/index.php/topic,199919.0.html I actually just had this issue and got it working. The very end shows my files Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/#findComment-584953 Share on other sites More sharing options...
Spunkyasp Posted July 9, 2008 Author Share Posted July 9, 2008 cant understand it, can u tell me what exactly to put, and do i have to put my ip and then my hostname? Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/#findComment-584978 Share on other sites More sharing options...
peranha Posted July 9, 2008 Share Posted July 9, 2008 Yes, put the IP and the host name. Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/#findComment-584994 Share on other sites More sharing options...
Spunkyasp Posted July 9, 2008 Author Share Posted July 9, 2008 this is what i have in my hosts file 127.0.0.1 localhost 127.0.0.1 test.localhost ***.***.**.** (no-ip hostname here) covered up the ip address and hostname for security reasons but those are the ones i registered noip with. Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/#findComment-585284 Share on other sites More sharing options...
Yuka Posted July 9, 2008 Share Posted July 9, 2008 If you run the config checker for Apache does it give you any errors or warnings? Is the DocumentRoot surrounded with quotes? (") Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/#findComment-585305 Share on other sites More sharing options...
Spunkyasp Posted July 11, 2008 Author Share Posted July 11, 2008 Yes it gives me too, one that it couldnt determine the servers full servename with ip, and another that it cant bind 0.0.0.0 or something. Quote Link to comment https://forums.phpfreaks.com/topic/113454-virtual-hosts-issue/#findComment-587528 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.