hosts文件创buildurl别名

我正在使用一个Mac,我已经find我的webroot文件夹到一个Dropbox子文件夹。 一切正常,但我有一个问题

 /Dropbox/webroot /Dropbox/webroot/site-one.com /Dropbox/webroot/site-two.com /Dropbox/webroot/john_shared_html/site-three.com /Dropbox/webroot/mark_shared_html/site-four.com 

如果我能findsite-three.comsite-four.com那将会很棒

按我的浏览器中的数字http://localhost/site-three.com

而不是http://localhost/john_shared_html/site-three.com

确实存在一些方法来做到这一点与主机文件或类似的东西? 我正在使用XAMPP

使用符号链接

 ln -s /Dropbox/webroot/john_shared_html/site-three.com /Dropbox/webroot/site-three.com