4/30/2023 0 Comments Mamp pro directory![]() For normal production servers, that should be port 80. ![]() Just make sure you change the "8888" port to whatever port you're using on your system. If you're trying to configure an Apache NameVirtualHost on your system, if you'll just copy the second configuration entry I'm showing above and start with that, you should be fine. ![]() In a strange error, some part of MAMP/Apache doesn’t like it if you use a name like foo_bar I just changed a test website name to foobar and it worked fine.Putting actual IP addresses in this file, like "127.0.0.1".Forgetting the NameVirtualHost entry at the top.Looking back at my errors, my biggest mistakes in creating these Apache NameVirtualHost entries have been: With this setup I can access my two different web applications at these URLs: Mac OS X /etc/hosts entriesĪlong with this configuration file, I have these corresponding entries in my Mac /etc/hosts file: However, because I am currently developing PHP applications, I need those Directory entries. If you have closed the main window of MAMP PRO in this way, you can open it again via the menu item Window -> MAMP PRO. To do this, copy (versus move) the db directory to another place on your hard drive so that you can easily restore it if something goes wrong. If you’re not using PHP you can trim these entries down even more, as shown next: Click on this menu item to close the current window. This should go without saying, but anything that’s located in the /Library/Application Support/appsolute/MAMP PRO/db directory should be saved in case you make an error when setting up the shared resources. Designed for professional Web developers and programmers, MAMP Pro allows easy installation and administration of their development environment under OS X. In short, as I’m developing two different applications, one named "cato" and another named "zenf", these are the important name-based virtual host lines from my Apache configuration file:ĭocumentRoot /Applications/MAMP/htdocs/catoĭocumentRoot /Applications/MAMP/htdocs/zenf MAMP PRO is the commercial, professional grade version of the classic local server environment for OS X: MAMP. In particular, this is from the nf configuration file that I use with MAMP on one of my Mac OS X development systems. ![]() Summary: Here are some notes on how to configure a Name Virtual Host (NameVirtualHost) on an Apache web server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |