Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm freelancing somewhere and want to share a local (on my MacBook) site with some LAN users via IP. The network structure, time and technical ability here don't allow me get everyone to add host entries or setup proper DNS..

So.. say I have http://devsite accessible on my own machine, is there a way that I can access this from the LAN via IP like: 'http://10.1.2.3/devsite' ?

I see that 'http://10.1.2.3/~mbp/' works for the default site (where 'mbp' is my machine name) but not sure how to get other sites working?

Cheeeers.

Added for clarity: the name 'devsite' is added in /private/etc/hosts by me, and the vhost is added to /private/etc/apache2/extra/httpd-vhosts.conf

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

When you turn on Web Sharing from the System Prefs there will be a LAN IP that will point to your local ~/Sites folder. All you would have to do is have those on the LAN point there browsers to http://myLANIP/~username/devsite where devsite is a folder inside of your ~/Sites folder.

share|improve this answer
1  
Ah ok thanks, so the reason it's not working for me like that at the moment is that my sites live in another location. Ok, I'm going to be rebuilding the machine soon so I'll have a re-jig and change the way I work :) - Thanks! –  Mere Development Feb 23 '12 at 3:14
2  
Try placing an alias to the folder where your work is into ~/Sites –  afragen Feb 23 '12 at 3:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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