apache - MAMP on OSX Yosemite - Virtual host name gives 404 error -
i installed mamp v3.2.1 on new macbook pro running osx yosemite (10.10.3).
localhost running expected, can browse http://localhost, no problem.
however, amiss named virtualhost - when browse site 404. edit: i'm seeing 'this webpage not available - err_connection_timed_out' (in chrome)
i've read , checked other threads on similar issues, none of them has far resolved issue. i'm hoping can me, i'm totally stuck.
here's i've done , tried:
in
/private/etc/hosts127.0.0.1 mysitename.dev ::1 mysitename.devand in
/applications/mamp/conf/apache/httpd.config, uncommented include virtualhosts file inextra/httpd-vhosts.conf
and added directive in vhosts file so:
namevirtualhost *:80 <virtualhost *:80> documentroot "/applications/mamp/htdocs" servername localhost </virtualhost> <virtualhost *:80> documentroot “/users/myname/sites/mysitename“ servername mysitename.dev serveralias mysitename.dev </virtualhost> i changed mamp apache settings listen port 80 (and checked httpd.config line listen 80 (i think mamp updates this?)
i've checked , double checked paths folders, checked typos...even double checked index.html file exists.
when @ apache log, don't see untoward, although wouldn't able tell if there was(!?)
i haven't explicitly 'turned off' mac's own apache server, because haven't turned on (should i? localhost working mamp, so...)
i'm mac-novice - i'm having teething problems! or suggestions in right direction appreciated.
thanks in advance.
p.s. ping'd mysitename.dev , got
--- mysitename.dev ping statistics --- 132 packets transmitted, 132 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.039/0.096/0.294/0.042 ms i got similar results pinging localhost (no timeout messages), assume it's good, i'm still lost...
i believe quotation mark formatting issue. how quotation marks on documentroot formatted differently documentroot in default example. make sure formatting correct copy correct quotation mark character example documentroot , paste on documentroot quotation marks. issue can come when text copy-pasted 1 place another.
Comments
Post a Comment