Thread: Hosting w/ Mac through a Router?
06-26-2005, 10:56 PM #1AndyMcCulloughGuestHosting w/ Mac through a Router?
I have been on this router for ages when I had PC's.. Now I converted all to macs... I found a new option to webhost off my Mac. Personal Sharing something like that.. How do i set it up to be able to host through a router. I have a SYSLINK Wireless Router. I'm using the hub part. My other PC's are wireless.
Someone please help.
06-27-2005, 01:40 AM #2ineedanewmacGuest
06-28-2005, 01:20 AM #3
- Member Since
- Jun 25, 2005
- On the road
- 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
Your talking about Personal Web Sharing.
It opens port 80 and allows you by default to place web pages in two main locations. One is the system default area at /Library/WebServer/Documents/. You can place a new index.html file there to override what is coming up now.
The other location is ~/Sites/. The tilde represents the short username. If you short username is joe than the full Finder path is /Users/joe/. In the browser type http://localhost/~joe/ and it will find the default index.html file in joe's Sites folder. From the outside, a friend would type http://nn.nnn.nnn.nnn/~joe where the n's are your routers external IP address.
You'll need to learn how to forward port 80 from you router to the Mac. On the router I have the option is titled Virtual Hosting. You enter a port number and the destination IP address. You'll likely have to create a fixed IP address on your Mac because if your using DHCP, the address can change under your feet.
Note that some ISPs block port 80 so people out on the net couldn't see you page. If that is true for you, than you need to change the port in the router and in the Apache (webserver) configuration file. That file is /etc/httpd/httpd.conf which can be found via the Finder by Selecting the "Go to Folder..." selection under the Go menu item. I'm looking via Tiger right now. The usual alternate port to user is 8080, but you could use almost anything above that if your ISP also blocks that one.
Enjoy. That is the easy part!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By timmy_toad in forum Web Design and HostingReplies: 2Last Post: 01-06-2012, 01:47 PM
By mtyoung400 in forum OS X - Apps and GamesReplies: 2Last Post: 05-26-2009, 12:27 AM
By TMelcher in forum Web Design and HostingReplies: 4Last Post: 08-12-2006, 08:14 AM