![]() If you were editing your nf file directly, you’re done with this step. I also added this entry so I could access the project root through a browser: Remember to change the DocumentRoot URL to the appropriate path to your sites on your computer. Now, for each domain name, add an entry to connect it to the appropriate directory path on your computer like this: ĭocumentRoot "/Users/username/projects/first"ĭocumentRoot "/Users/username/projects/second"ĭocumentRoot "/Users/username/projects/third" In nf, find this line and make sure it’s uncommented: ![]() If you do this, make sure that your main nf file includes the nf file. Now, you can edit it directly, or do what I did, which is edit the nf file in the “extra” directory here: sudo nano /Applications/MAMP/conf/apache/extra/nf If you’re familiar with Apache, you know this happens in the nf file. Now you have to tell Apache which directory to use for each URL. You can choose whatever you want, but don’t use “.dev”, as that has been reserved for other purposes and won’t work in most browsers (I learned this the hard way back when I was using Desktop Server). Note, I decided to switch to the “.local” top-level domain for my local dev sites. Go ahead and edit it using your favorite text editor and add all your local development sites like this: 127.0.0.1 first.local ![]() The next step is to direct your local URLs to your localhost by adding them to your hosts file, which is located here on a Mac:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |