Now you’re ready to edit the nf file and add the hosts for the projects you want to work on.Įxample: DocumentRoot "/Users/username/public_html/project_vl/" ServerName project_vl To the file /Applications/MAMP/conf/apache/nf Since I like to stick to learning technologies I found a way to enable the same behaviour in the free version of MAMP.īasically you need to edit three files to use the virtual hosts with the free version of MAMP, to be able to use domains like: project_name.test in your address bar and without MAMP PRO.įirst, enable loading the vhosts config file placed in /Applications/MAMP/conf/apache/extra/.Īdd Include /Applications/MAMP/conf/apache/extra/nf That may not sound significant, but the interface let’s you control MAMP more easily.MAMP PRO supports the easy setup of custom domains like awesomeproject.local for developing your web projects. MAMP Pro is does not install a new or different version of Apache, PHP, or MySQL, it’s just a nicer interface to the MAMP installation. The cost was $59 (US), which was slightly high, but not unreasonable. It turns out that I’m so glad I upgraded to MAMP Pro. So I finally upgraded to MAMP Pro, which I really had intended to do by now anyway (as an act of supporting a product that I value that’s made available for free). I came across a quick fix for MAMP (non-Pro) but that didn’t work for me. But just the other day I needed a Web site to actually send out email, even while testing it on my computer. This is not something I do or recommend others do (at the very least, it’s probably a violation of most ISP’s terms). One feature MAMP Pro offers is the ability to use dynamic DNS to serve your sites from your computer, even if your IP address changes regularly (which is the case for most home access). I’ve thought about upgrading to the Pro version off and on, but, when looking at the features, didn’t see the need. MAMP comes in a free version that I’ve been using, happily, for years. (Conversely, it’s easy in MAMP to use a different directory for the Web files I use the Sites folder in my home directory, which is more in keeping with the standard of not putting user files in /Applications.) This isn’t a big problem, but would be a nice feature to use. If MAMP were to store the databases (MySQL and SQLite) elsewhere, upgrading the version of MAMP wouldn’t overwrite the existing databases. Really, my only complaint is that MAMP doesn’t, by default, store the databases in a separate directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |