Suggestion - what do you think?
Posted by: seaneraus (---.lns7.win.bigpond.net.au)
Date: May 16, 2014 01:12PM

Hi guys,

I like the idea of controlling aliases from the wampserver GUI menu, but I think it would be even more useful to be able to setup VirtualHosts via point-and-click as well... Obviously this would require modifying the windows hosts file as well to point that host to 127.0.0.1...
This would make development much easier!!

What do people think?

Options: ReplyQuote
Re: Suggestion - what do you think?
Posted by: Otomatic (Moderator)
Date: May 16, 2014 03:08PM

Hi,

I work on the subject of VirtualHost. An evolution of the page wamp/www/index.php now shows and links VirtualHost based on the contents of C:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf.

With Wampserver 2.5, you can have a submenu in the Wampmanager icon that shows VirtualHost:
In the file C:\wamp\wampmanager.tpl you can replace the line
(That after [Menu.Left] ;WAMPMENULEFTSTART) :

;WAMPPROJECTSUBMENU
by
;WAMPVHOSTSUBMENU

Don't forget the semicolon at the beginning)

It lacks an item to create the VirtualHost and edit the hosts file.
But for the changes to be taken into account without the need to reboot, you must stop and restart two services:
Dnscache for hosts file
wampapache for VirtualHost

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.