![]() Options Indexes FollowSymLinks Includes AllowOverride All Order allow,deny Allow from allĦ. # Uncomment next line if you need to specify the location of your log file Now add the following lines to your file: Remove all example entries so you will have an empty fileĥ. Next open nf (location: /Applications/MAMP/conf/apache/extra/nf)Ĥ. Include /Applications/MAMP/conf/apache/extra/nfģ. Uncomment the line under the “Virtual Hosts” section, so it looks like this (note that the path may vary depending on your setup): # Virtual hosts Open up nf (location: /Applications/MAMP/conf/apache/nf)Ģ. Instead of the previous instructions for “Edit Apache config file”, follow these steps:ġ. ![]() Yotam Praag sent in an alternate way of implementing this step. Replace that line with the following code: NameVirtualHost *ĭocumentRoot "/Applications/MAMP/htdocs/"Ĭhange each instance of to match your domain, save the file, and then Restart Apache by clicking “Stop” and then “Start” in the MAMP control panel. Open /Applications/MAMP/conf/apache/nf in a text editor and scroll down to the line that says “ #NameVirtualHost *”. The next step is to add virtual hosts to your Apache configuration file. Then save the file and exit by typing Ctrl+O, Enter, and then Ctrl+X. Add as many sub-domains as needed, now or later. Use the arrow keys to scroll down to the end of the hosts file and add the following lines: 127.0.0.1 Įdit these entries to match the domain and sub-domains that you want to create with MultiSite. To do this, open Terminal and type “sudo pico /etc/hosts” (without the quotes), and then enter your password at the prompt. Next, add your sub-domains to the Mac hosts file. So when you create a new site named “business”, it will be located at Here’s a mini-tutorial on how to use sub-domains for your network sites.Īfter installing MAMP, change the default Apache port to 80. The easiest and recommended way of setting up WordPress MultiSite is to use sub-directories. Setting up a WordPress environment on MAMP is definitely worth the effort, especially if you’re building and testing multiple sites using WordPress’ built-in MultiSite functionality. Developing WordPress sites on a local MAMP server provides flexibility, privacy, and security throughout the development process.
0 Comments
Leave a Reply. |