I desperately need help.
I read an article on the echoditto blog (http://www.echoditto.com/blog/never-touch-your-local-etchosts-file-os-x-again) and followed the recommendations for setting up dnsmasq on my mac using homebrew. Now I am having an issue I cannot resolve, and I need help, because it has totally crippled my development work.
Initially, after implementing dnsmaqs, I could not get my sites to load at all…but I was able to resolve that issue by changing the contents of my httpd-vhosts.conf file to the following:
#allow access to the Hosts directory where your sites are <Directory "/Volumes/sites"> Options Indexes FollowSymLinks MultiViews AllowOverride All #you could configure the following to only allow access from localhost Order allow,deny Allow from all </Directory> #get the server name from the Host: header UseCanonicalName Off VirtualDocumentRoot /Volumes/sites/%0/
Now, I can point my browser to http://domainname.dev/ and get the site to load.
However, using Joomla, I am having issues with mod_rewrite:
I can load the administrator backend without a problem by browsing to http://domainname.dev/administrator/
I can load the home page of the site without any issues by browsing to http://domainname.dev/
However, if I click on any link that would normally load a sub-page, such as http://domainname.dev/about I get either a 404 error or a 500 error and the following page contents:
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, email@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
I tried switching back to non-dynamic virtual hosting and it doesn't work anymore.
I also cannot access the sites by pointing the browser to
Please advise as soon as possible, because otherwise, I will have to go through a complete reinstall of my Mac and I cannot afford the downtime.
I have uploaded my httpd.conf file, httpd-vhosts.conf file and a sample .htaccess file to a gist: https://gist.github.com/alisamii/6549754
Also, it may be of note that I tried reverting to the settings I had prior to installing dnsmasq so I could access the local sites using the URL scheme
http://localhost/path/to/site but it no longer works, and I get a server configuration error.