# ServerAdmin DocumentRoot "/# ServerName # match a ServerName or ServerAlias in any block. # The first VirtualHost section is used for all requests that do not # Almost any Apache directive may go into a VirtualHost container. Create your nf fileĬreate a new text file and save it in the Include path you defined in the previous step. This will ensure that Apache reads the contents of the nf file you are going to create. Include /Applications/MAMP/conf/apache/nf Navigate to the end of that file and enter this: Open the file nf located in /Applications/MAMP/conf/apache in a text editor of your choice (either TextEdit or BBEdit will do). Path to your Apache files in MAMP on OS X Open the file nf located in /Applications/MAMP/conf/apache in a text editor of your choice (either TextEdit in plain text mode, TextWrangler or BBEdit will do). The editor will overwrite the existing /etc/hosts file. Press Control-X to exit pico. When prompted to overwrite existing file, confirm with Return. When you are done editing the /etc/hosts file, press Control-O in order to output your changes to the file. ![]() Instead of localhost, localhost2, localhost3 you could actually put in the name of a project. Do not change this entry.ġ27.0.0.1 localhost localhost2 localhost3 # localhost is used to configure the loopback interface When prompted, enter the password of your administrator account.Įdit the file in a way that you see a result like this: In order to complete the other steps you should stop your servers now. In order to manage your servers, locate a folder named MAMP in your Applications folder and double-click MAMP.app. ![]() Installing MAMP and MAMP ProĪt this point, you should have a working installation of Apache with MySQL. Unzip the packgage, double-click the installer and follow the on-screen instructions. Today we will show you how to set up virtual hosts on MAMP.įirst, go to the official MAMP website and download your free copy of MAMP. This will work with any popular distribution including MAMP, WAMP and XAMP. Instead, you can set up virtual hosts on your existing Apache installation. In order to comfortably edit several dynamic websites in Dreamweaver at the same time you do not need several teting servers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |