Web server macos monterey12/13/2023 Now your Mac knows the other Mac by name, system wide. with your local IP-adresses and use the names of your own Macs) Localuser -> /Users/marcvos/Dropbox/Sites/įirst, edit your /etc/hosts file on both Macs and add the localuser-domain below the localhost-settings: Imac2012 -> /Volumes/Data HD/Dropbox/Sites/ Localuser -> /Volumes/Data HD/Dropbox/Sites/ (illustrates the use of a second disk) Localhost -> /Library/WebServer/Documents/ ![]() To test my web sites on ~/Sites, I use For the default web documents folder, I use the default host And to access my iMac from my MacBook Pro, I use and the other way around is Paths I name my Macs with type and year: IMAC2012 and MBP2013.I have created some other folders, like /var/php/ and /var/py/ where I stro my own PHP- and Python functions.I use the ~/Sites folder under my user to store all websites, Rapidweaver files, Sublime-text project files, PHP-function libraries, etc.I use the default web server folder for all general media, like jQuery, TinyMCE, Fontawesome, CSS-files, images and other/my own Javascript-files.My iMac is my central hub from where all files are being distributed: to Dropbox, to SVN and to iDrive backup. ![]() Furthermore, I moved the Sites-folder into Dropbox on both Macs, so I don't have to setup some kind of timely mirroring with SVN, ChronoSync, or something similar. I then had to move my 'Sites' folder onto this new SSD, because the Apple SSD is only 240GB. My iMac had a fusion drive, but I split it into two and replaced the 3TB HDD with an 2TB SSD. I have 2 Macs - an iMac and MacBook Pro - and I use them both for web development. If you're on another version of macOS, not to worry, the steps to take are practically identical. ![]() I'll describe how to set it up on macOS High Sierra (10.13.5). And you want to be able to access your Sites folder, local web documents folder and your other Mac via HTTP. If you are a web developer, you sure do want to use the macOS X built-in web server, Apache, on all your Macs.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |