|
|
10.5: Use Apache virtual hosts outside the Sites folder
This hint is overly complicated. Just make a symbolic link from If you want to host multiple sites, just make the symlink point to
10.5: Use Apache virtual hosts outside the Sites folder
Virtual hosts are a method of serving multiple sites without the need to change directory names, especially when using name based virtual hosting. So one could easily have multiple directories inside the ~/Sites folder and point individual virtual hosts at each of these sites. By updating /etc/hosts or /private/etc/hosts, your system can be configured so that typing 'apple' or 'baboon' or whatever name you choose points to different vhosts (sites) on your machine. I was just looking for a way to get out of being confined to keeping the sites I'm serving in either /Library/WebServer or /Users/*/Sites. In OS X, it seems like the best option is keeping web projects in Sites and using symlinks to easily access them from elsewhere. I suggest looking into name based virtual hosts to avoid the hassle of renaming folders. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.11 seconds |
|