Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using a Mac where I've located my webroot folder into a Dropbox sub folder. Everything works fine but I have a problem

/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

It would be great If I could find site-three.com and site-four.com

by digit in my browser http://localhost/site-three.com

instead of http://localhost/john_shared_html/site-three.com

does exists some way to do that with hosts file or something similar? I'm using XAMPP

share|improve this question
add comment

closed as off topic by SvW, Kenny Rasschaert, Chopper3, Iain Jun 14 '12 at 11:10

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

Use symlinks

ln -s /Dropbox/webroot/john_shared_html/site-three.com /Dropbox/webroot/site-three.com
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.