![mac os x apache mac os x apache](https://s3.amazonaws.com/websitebeaver/blog/set-up-localhost-on-macos-high-sierra-apache-mysql-and-php-7-with-sslhttps/4.jpg)
Now, when you enter " the browser will display the contents of "/Volumes/MyOtherHD/mysite" Unlike a VirtualHost, an alias is just a single word that follows the "localhost" address.Īpache can be configured to direct requests to this "foo" address to a unique folder on your Mac hard drive. Apache will direct the requests to (or pull files from) the "/Library/Webserver/Documents" folder.ĭevelopers need a way to run multiple sites locally - using a unique folder and "address" for each site.Īpache's VirtualHost allows us to manage domains, however, establishing a VirtualHost requires a fiddling around with the Mac's DNS and other scary stuff - yikes! Enter AliasesĪn easier, and less intrusive way to "point" or "map" an address to a unique folder is to use an "alias". In other words, when you enter the following address into a browser on your Mac: On the Mac, the localhost "domain" is set up to pull files from the following folder on your Mac's hard drive: Don't change this unless you understand what you're doing. This is a special path on your system where Apache automatically picks up "conf" files. Don't change this unless you understand what you're doing.Įtermines where the alias configurations go. If you have a unique Apache installation, or perhaps Apple decides to change things in the future, you can edit this path to target where Apache lives on your system. Used to target where the main Apache "program" lives on your system.
#MAC OS X APACHE PASSWORD#
Should be the adminitrator password for you Mac (the user who is allowed to do anything on the Mac). you should see the contents of the folder that the alias was "mapped to". Once you've set up an alias, you can launch a browser window and type in the new address. Drag and drop a folder on your local machine into the "Aliases" area of the app.Īpache Admin will set up the alias and automatically restart Apache. After downloading and unzipping, right-click on "Apache Admin" app and choose "open". NOTE: Mavericks requires "Unidentified Developer" apps downloaded from the internet to be verified by you.
#MAC OS X APACHE MAC OS#
Quickly set up multiple web environments under the built-in Web Sharing feature of Mac OS X, or a standard MAMP Apache Install.Īpache Admin is NOT a swiss army knife, it's just a small utility that will::