localhost - Wamp service not gettting started after vhost setting -


recently had made changes in httpd-vhosts file create virtual host. after wamp icon status no turning green, hence remains orange. ive cheked other http programs if had been run through test port80, found no programs run. guess there might mistake when configured virtual hosts. below i'd tried before wamp had stopped working. please tell me if configuration done correct or incorrect. please suggest solution configuring vhosts file in wrong.

this lines inluded in httpd-vhosts file

  <virtualhost *:80>     serveradmin webmaster@localhost     documentroot "c:/wamp/www"    servername tastingroom.com   #serveralias www.dummy-host.example.com    errorlog "logs/localhost-error.log"    customlog "logs/localhost-access.log" common  </virtualhost>   <virtualhost *:80>    serveradmin webmaster@dummy-host2.example.com    documentroot "c:\wamp\www"    servername tastingroom.com    serveralias www.tastingroom.com    errorlog "logs/tastingroom-error.log"    customlog "logs/tastingroom-access.log" common   <directory "c:\wamp\www">      option indexes followsymlinks      allowoerride      order deny,allow      deny      allow 127.0.0.1       </directory>   </virtualhost> 

and in "hosts" file inside system32 of windows folder

enter code here  127.0.0.1 localhost 127.0.0.1 tastingroom.com 

thank ..

i dont think same server name allowed, can please check apache error logs , see error message shows. also, virtualhost entry should below , remove first 1 redundant

<virtualhost *:80>    serveradmin webmaster@dummy-host2.example.com    documentroot "c:\wamp\www"    servername tastingroom.com    serveralias www.tastingroom.com tastingroom.com    errorlog "logs/tastingroom-error.log"    customlog "logs/tastingroom-access.log" common   <directory "c:\wamp\www">      option indexes followsymlinks      allowoerride      order deny,allow      deny      allow 127.0.0.1       </directory>   </virtualhost> 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -