Flying Sagittarius Posted June 22, 2008 Share Posted June 22, 2008 Where do I put the Virtual host information in the Apache httpd.conf file? Quote Link to comment https://forums.phpfreaks.com/topic/111404-im-trying-to-add-name-based-virtual-hosts-to-my-server/ Share on other sites More sharing options...
trq Posted June 22, 2008 Share Posted June 22, 2008 You can usually just stick it at the end, though there are usually better ways. Are you using Linux? Any particular distro? I only ask because allot of distros have there own methods of handling such tasks. One way that I've become accustomed to is to define all my vhosts in there own files then simply include these files into the main httpd.conf file. eg; # Include the virtual host configurations: NameVirtualHost * Include /etc/apache2/vhosts/*.conf Then in the /etc/apache2/vhosts directory I would have all my vhosts in separate *conf files. Quote Link to comment https://forums.phpfreaks.com/topic/111404-im-trying-to-add-name-based-virtual-hosts-to-my-server/#findComment-571840 Share on other sites More sharing options...
Flying Sagittarius Posted June 22, 2008 Author Share Posted June 22, 2008 XAMPP installed my server, and it's supposed to be cross-platform. By distro, do you mean version number? It's Apache 2.2.8. Quote Link to comment https://forums.phpfreaks.com/topic/111404-im-trying-to-add-name-based-virtual-hosts-to-my-server/#findComment-571845 Share on other sites More sharing options...
trq Posted June 22, 2008 Share Posted June 22, 2008 XAMPP installed my server, and it's supposed to be cross-platform. By distro, do you mean version number? It's Apache 2.2.8. No, i was talking about Linux distros. Either way, it doesn't matter. I was just trying to explain that some distros already have a defined method of adding virtual hosts. Quote Link to comment https://forums.phpfreaks.com/topic/111404-im-trying-to-add-name-based-virtual-hosts-to-my-server/#findComment-571851 Share on other sites More sharing options...
Flying Sagittarius Posted June 23, 2008 Author Share Posted June 23, 2008 Ok, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/111404-im-trying-to-add-name-based-virtual-hosts-to-my-server/#findComment-571898 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.