my bad
]]>And after backing up my httpd.conf file to httpd.conf.backup I went down to section 3 of my httpd.conf file and cut the whole section out and put it in my v.host.conf file and then where section 3 was I ended up putting include virtualhosts/*.conf
Now depending on your directory root of your virtualhost, if it is above your default directory root you might have to add
Options FollowSymLinks
AllowOveride ALL
The “*” means any folder I drop in sites that has a public_html folder will read .htacces files with the AllowOveride set to All. The Options can be overridden by the virtual host configuration file.
In my host file I added the 127.0.0.1 “whatever”
and in the v.host.conf file I have this setup
NameVirtualHost 127.0.0.1
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any block.
#
DocumentRoot “/var/www/html”
ServerName localhost
ServerAdmin admin@zendtest
DocumentRoot “/var/www/sites/zendtest/public_html”
ServerName zendtest
ErrorLog /var/www/sites/zendtest/logs/error_log
CustomLog /var/www/sites/zendtest/logs/access.log common
DocumentRoot “/var/www/sites/zendtest/tests”
ServerName zendtest.test
Thanks for the feedback. Doing a MAMP video sounds like a great idea. I’ll put something together in the coming weeks.
]]>The one part I struggled with is where you set up your Virtual hosts with MAMP. You had a custom httpd.conf file but I tried to replicate your your syntax with the help of the apache manual on setting up virtual hosts with no luck.
Is there any possibility of you doing a screen cast or tutorial on how you set up your MAMP virtual hosts please. I did a google search and there is a lot of people having similar problems and the MAMP forum isn’t very helpful 🙁
keep up the good work, thanks.
]]>