Virtual Host under MacOSX not working
Posted
by
David Casillas
on Pro Webmasters
See other posts from Pro Webmasters
or by David Casillas
Published on 2011-06-28T20:05:16Z
Indexed on
2011/06/29
0:32 UTC
Read the original article
Hit count: 357
I have setup a virtualhost for MacOSX Apache instalation. This are my steps:
edit /private/etc/apache2/httpd.conf removing comment from:
Include /private/etc/apache2/extra/httpd-vhosts.conf
edit /private/etc/apache2/extra/httpd-vhosts.conf, added:
<VirtualHost *:80> ServerName test.local DocumentRoot "/Users/myusername/Sites/Test/public" <Directory "/Users/myusername/Sites/Test/public"> Options Indexes FollowSymLinks Includes AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
edit /private/etc/hosts added
127.0.0.7 test.local
Restart Apache
But the VirtualHost does not work. To further isolate the problem I check the same configuration with MAMP and the virtual host worked rigth, so the configuration files should be fine.
What can be wrong?
© Pro Webmasters or respective owner