Hosting w/ Mac through a Router?

A

AndyMcCullough

Guest
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.
 
Joined
Jun 25, 2005
Messages
3,231
Reaction score
112
Points
63
Location
On the road
Your Mac's Specs
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!
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top