I'm in a bit of shock... I was going through my SystemLibrary when I stumbled upon "UserTemplates > English.Iproj > Sites"
I opened up the index.html and read it...
Aparently in SystemPref, in "Sharing" there is an option to HOST your own websites?!! Did I get this right? am I understanding correctly? (Of course the website will only be online when your computer is turned ON and internet-connection established...)
However is this an easy way to allow friends to quickly access files from your computer that they may want to download? or a way to setup a WAN website easily? or even a personal page for family and friends?
Anyone use this "option/function" or have any experience with it, Am I correctly understanding what this option does?
__________________
"The problem with quotes on the Internet is that you can't be sure they're genuine." - Abraham Lincoln
yeah, it runs apache webserver. your ip address with your host is likely dynamic so it might not be so easy to hit from the general web. some providers also frown upon web hosting from residential internet packages. you may have to upgrade...
That's how I'm running 2 web sites on my old PowerMac G4 at home. One of them is in my signature if you're interested. It's a full-blown Apache web server that is extensible to do whatever you need, including in my case, running 2 domain names off of one IP address.
__________________
Mac User since 1989
MacBook Pro 15.4"/2.33GHz Core 2 Duo/4GB/250GB HD/256MB VRAM
Mac mini/2.0GHz Core 2 Duo/1GB/120GB HD
PowerMac G4 "Sawtooth"/1.4Ghz G4/1GB/2 x 120GB HD/64MB ATI Radeon 8500
iPhone 3GS 32GB on Rogers Canada Master of the Art Of Geek.
I'm in a bit of shock... I was going through my SystemLibrary when I stumbled upon "UserTemplates > English.Iproj > Sites"
I opened up the index.html and read it...
Aparently in SystemPref, in "Sharing" there is an option to HOST your own websites?!! Did I get this right? am I understanding correctly? (Of course the website will only be online when your computer is turned ON and internet-connection established...)
However is this an easy way to allow friends to quickly access files from your computer that they may want to download? or a way to setup a WAN website easily? or even a personal page for family and friends?
Anyone use this "option/function" or have any experience with it, Am I correctly understanding what this option does?
You're poking around in the System folder, looking at a very obscure file and THIS is how you discover Personal Web Sharing? Something that has been in OS X since 10.0? Have you never gone into System preferences before?
In all seriousness, yes it allows you to host your own site. In your home folder is a folder calls sites. Drop any HTML files in there and they can be accessed like this: http://youripaddresshere/~yourusername/htmlfile.html (leave the end part off if you drop an index.html file in there, thats what Apache looks for by default).
Alternatively, if you just want to be able to go to http://youripaddresshere/ then you need to drop files into /Library/WebServer/Documents/. This is the "root" of the Apache web server, where it is configured to look for documents by default. I host a few sites on my own machine and I use http://no-ip.com to assign an actual .com (or .net in my case) address to my (not so) dynamic IP address.
Trev
__________________
-Macbook Pro 2GHz Core Duo 15.4", 2GB, 100GB, Superdrive, Airport, BT, 256MB ATI x1600
-iPhone 8GB
That's how I'm running 2 web sites on my old PowerMac G4 at home. One of them is in my signature if you're interested. It's a full-blown Apache web server that is extensible to do whatever you need, including in my case, running 2 domain names off of one IP address.
I do the same thing. I have configured Apache to use Virtual hosts. Two domains, one IP, no muss no fuss.
Trev
__________________
-Macbook Pro 2GHz Core Duo 15.4", 2GB, 100GB, Superdrive, Airport, BT, 256MB ATI x1600
-iPhone 8GB