apache - cant get virtual host to work in wamp -


version:2.5
know there many guides not work reason , can't did

in virtual host

<virtualhost *:80>    documentroot "d:/wamp/www"    servername localhost    <directory "d:/wamp/www">       options indexes followsymlinks       allowoverride       require local    </directory> </virtualhost>  <virtualhost *:80>    documentroot "c:/elgg"    servername elgg.local    serveralias elgg.local    <directory  "c:/elgg">       allowoverride       require granted                 </directory> </virtualhost> 

in hosts file

127.0.0.1       localhost ::1             localhost  127.0.0.1       elgg.local ::1             elgg.local 

in conf file

# virtual hosts include conf/extra/httpd-vhosts.conf  

i did when type elgg.local searches actual website

last 10 apache lines

[fri oct 16 10:33:49.873625 2015] [mpm_winnt:notice] [pid 1576:tid 668]        ah00418: parent: created child process 1252 [fri oct 16 10:33:50.405080 2015] [mpm_winnt:notice] [pid 1252:tid 600] ah00354: child: starting 64 worker threads. [fri oct 16 12:09:50.487027 2015] [mpm_winnt:notice] [pid 1576:tid 668] ah00422: parent: received shutdown signal -- shutting down server. [fri oct 16 12:09:52.490354 2015] [mpm_winnt:notice] [pid 1252:tid 600] ah00364: child: worker threads have exited. [fri oct 16 12:09:52.606432 2015] [mpm_winnt:notice] [pid 1576:tid 668] ah00430: parent: child process 1252 exited successfully. [fri oct 16 12:09:54.598384 2015] [mpm_winnt:notice] [pid 6408:tid 656] ah00455: apache/2.4.9 (win64) php/5.5.12 configured -- resuming normal operations [fri oct 16 12:09:54.598384 2015] [mpm_winnt:notice] [pid 6408:tid 656] ah00456: apache lounge vc11 server built: mar 16 2014 12:42:59 [fri oct 16 12:09:54.598384 2015] [core:notice] [pid 6408:tid 656] ah00094: command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d c:/wamp/bin/apache/apache2.4.9' [fri oct 16 12:09:54.600385 2015] [mpm_winnt:notice] [pid 6408:tid 656] ah00418: parent: created child process 8152 [fri oct 16 12:09:54.943610 2015] [mpm_winnt:notice] [pid 8152:tid 580] ah00354: child: starting 64 worker threads. 

turns out there not much, if anything, wrong apache config.

however @tryhard using google chrome browser, , doing google search whenever url elgg.local entered , not using domainname. ie did not make mistake, must chrome issue!

the popular solution, have used before, of

enter chrome://flags in address bar , set "built-in asynchronous dns" "disabled", restart browser. no longer seems work option no longer available in flags parameters.

dont know if chrome bug or oddity, solution come add trailing / domain name. made chrome use url rather start search!

so elgg.local did search

and elgg.local/ ran website code.

if ever odd unexpected behaviours while using chrome, try ff and/or ie before else, make sure same things happen chrome seems have quite few odd behaviours when dealing local development websites.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -