If you have Web Sharing enabled, and you put a site in /Library/WebServer/Documents/, then it will be accessible whenever someone navigates to your computer.
So if your computer was available at http://example.org/ (which means that you had configured your router to accept web connections on your public IP address, and route them to your computer on its non-routable private address, and that you had arranged for a domain name server somewhere to host your domain name and point it at your public address – whew!) then yes, they would see that site.
If you put your site in your personal folder: /Users/yourname/Sites/ then visitors would see it at the address http://example.org/~yourname/
But there’s one more kink in this whole topic that I didn’t mention earlier. IP addresses. Many ISPs do not offer static IP addresses, which means that each time your computer or router connects to the net, it might get a different IP address. This makes it impossible to have DNS set up, because there is no static address for the DNS to point a domain name to. You would have to check your current IP address, quick, tell your client to go to http://123.45.221 and hope that your ISP didn’t bounce you to another address at some point in the interval. There are solutions, which mainly consist of a process running in the background on your computer which keeps a “dynamic DNS” aware of your actual IP address du jour.
So let me wrap all this up in a bow for you. It’s hard, but if you’re a geek, it can be a fun hobby. I’ve been running Apache since 1998 or so, just to see if I could. I pay a relative fortune for my internet service, so I have 8 static IP addresses to play with. Then I also have a very flexible router, loads of networking equipment, two dedicated Mac OS X Server machines running 24/7 in my basement – basically a lot of investment in time and money. What this has gained me is an encyclopaedic understanding of What Can Go Wrong, and a lot of valuable experience in configuring Apache, PHP, and MySQL that I can leverage for paying gigs.
You may not want to go down this path.
If you don’t, then I recommend getting a $10/year hosting contract somewhere. Seriously, you can find them in cereal boxes these days. Use it as a staging server for your clients, use it to host your own crash-test-dummy site, whatever. It’s worth it. Even with my basement full of gear, I still maintain a number of other servers on “real” hosting providers. My power and internet go out from time to time, and theirs never does.
Walter
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options