thewooleymammoth Posted March 19, 2010 Share Posted March 19, 2010 I know how to create a virtual host, however i have recently been getting alot of business and have to set this up way to often. I also need to enable clean urls so each site needs to have its own root. Does anyone know of a way to automate this? It would make my life much easier. Perhaps a freeware app that adds the info to your hosts file and to your apache http.conf file? I havnt been able to find anything on google If not do you have a different method you would care to share? Link to comment https://forums.phpfreaks.com/topic/195823-xamppwamp-freeware-virtual-host-manager/ Share on other sites More sharing options...
trq Posted March 19, 2010 Share Posted March 19, 2010 Does anyone know of a way to automate this? Script it. Your a php dev aren't you? Use php if you don't know Bash. Link to comment https://forums.phpfreaks.com/topic/195823-xamppwamp-freeware-virtual-host-manager/#findComment-1028809 Share on other sites More sharing options...
thewooleymammoth Posted March 20, 2010 Author Share Posted March 20, 2010 ... yea that could definitely work. don't know why i didn't think of that. Link to comment https://forums.phpfreaks.com/topic/195823-xamppwamp-freeware-virtual-host-manager/#findComment-1028915 Share on other sites More sharing options...
oni-kun Posted March 20, 2010 Share Posted March 20, 2010 ... yea that could definitely work. don't know why i didn't think of that. I personally have scripted tasks which I disliked when working with a few VPSs, If you need help just ask. Link to comment https://forums.phpfreaks.com/topic/195823-xamppwamp-freeware-virtual-host-manager/#findComment-1028993 Share on other sites More sharing options...
thewooleymammoth Posted March 20, 2010 Author Share Posted March 20, 2010 Awesome, I probably will, thanks. Link to comment https://forums.phpfreaks.com/topic/195823-xamppwamp-freeware-virtual-host-manager/#findComment-1029147 Share on other sites More sharing options...
jonsjava Posted March 23, 2010 Share Posted March 23, 2010 Hmmm...I actually wrote a how-to for ubuntu to autogen virtualhosts. If you want to see it, you can go to my wife's site to view the article. Basically, it will autogen the sites-available and symbolically link it to sites-enabled, but only if the domain is linked to the IP for your eth0. Once you have the script set up, and the folders created, it's as simple as adddomain yourdomain.tdl /etc/init.d/apache2 restart and that's it! Link to comment https://forums.phpfreaks.com/topic/195823-xamppwamp-freeware-virtual-host-manager/#findComment-1030749 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.