vhosts dont appear to be working on OS X Mavericks Apache installation -
i trying set apache server comes os x mavericks vhosts domain name resolves user level document webroot. have followed tutorial guided me through setting apache server php:
http://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-9-mavericks/
as 1 guided me through setting vhosts:
following these tutorials, if type localhost
in browser correctly resolves system level root (/library/webserver/documents/ folder). if use localhost/~myusername
correctly resolves user level root (/users/myusername/sites/).
however, whenever navigate domain, redirected system level root rather user level root.
my vhosts file reads follows:
<virtualhost *:80> servername localhost documentroot /library/webserver/documents/ </virtualhost> <virtualhost *:80> servername mydomain.com serveralias www.mydomain.com documentroot "/users/myusername/sites/mydomain" <directory "/users/myusername/sites/mydomain"> options indexes followsymlinks multiviews allowoverride order allow,deny allow </directory> </virtualhost>
any ideas?
have enabled virtualhosts?
namevirtualhost *:80
and included vhosts directory
include <path>/vhosts/*
on macbook, may need include /private/ @ beginning of absolute path, apache can read correctly off file system.
Comments
Post a Comment