Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Just discovered personal web sharing

Just discovered personal web sharing
Thread Tools
Mac Elite
Join Date: Jun 2005
Location: UK
Status: Offline
Reply With Quote
Feb 20, 2006, 03:17 PM
 
So I was looking around my Mac, and came accross personal web sharing and the whole Apache thing.

I've made a little html page using iWeb, and wanted to use my iMac as a really basic server for that one webpage at my house. It works fine when I try to view the page on my iBook using the address my iMac gives me, but when I try to view the page on any windows PC on my network, it won't load. Anyone got any ideas why?

I would love to use this feature at school - use the PM we have as a web server for just a few iWeb created pages, and allow anyone around the school to access it with the address which would be publically advertised. Problem is, all but 1 computer in the entire school is Windows XP, so if, like at home, you can't view the pages from the web server on XP, then its pointless.

Any ideas on ways to get it to work with XP?
iMac Core Duo 1.83 Ghz | 1.25GB RAM | 160HD, MacBook Core Duo 1.83 Ghz | 13.3" | 60HD | 1.0GB RAM
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Feb 20, 2006, 03:23 PM
 
Are they actually on the same network or are they on different routers? Because if the iMac is behind a router, you'll need to forward port 80 to the iMac's IP address and use the router's address to access it.

It shouldn't make a difference what platform the person loading the page is on. Probably the majority of sites on the Web run on Apache, so you know that's not the problem.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Elite
Join Date: Jun 2005
Location: UK
Status: Offline
Reply With Quote
Feb 20, 2006, 03:45 PM
 
I have 5 computers in my house, 2 Macs, and 3 PCs, all of which are wirelessly connected 2 my wireless modem/router (so just the one).

Just to be totally ignorant, how on earth do I forward pot 80 to the iMacs IP?

Cheers
iMac Core Duo 1.83 Ghz | 1.25GB RAM | 160HD, MacBook Core Duo 1.83 Ghz | 13.3" | 60HD | 1.0GB RAM
     
Mac Elite
Join Date: May 2001
Location: Manchester, UK
Status: Offline
Reply With Quote
Feb 20, 2006, 04:23 PM
 
You can usually do this using the web interface which you use to configure you router. If you just plugged in your router and it worked, you many never have done this. You need to know the IP address for your router and put this in your web browser. This IP address will be in the manual for the router. It will be on the same subnet as your Mac's 'internal' IP address and might end 254. Mine is 192.168.123.254. You can then configure the port forwarding bit of the web interface to arrange the port forwarding.
     
Professional Poster
Join Date: Jun 2000
Status: Offline
Reply With Quote
Feb 20, 2006, 04:45 PM
 
This site will tell you how to get into your router: http://www.portforward.com/routers.htm
     
Mac Elite
Join Date: Jun 2005
Location: UK
Status: Offline
Reply With Quote
Feb 21, 2006, 12:57 AM
 
Cheers people, I got it working
iMac Core Duo 1.83 Ghz | 1.25GB RAM | 160HD, MacBook Core Duo 1.83 Ghz | 13.3" | 60HD | 1.0GB RAM
     
Mac Elite
Join Date: Jun 2005
Location: UK
Status: Offline
Reply With Quote
Feb 21, 2006, 12:28 PM
 
OK, so its all working and everything, but I can't work out how to put password protection on the sites, because as it stands, anyone could get to my site if they knew (or guessed?) my IP address. Any ideas?

Cheers
iMac Core Duo 1.83 Ghz | 1.25GB RAM | 160HD, MacBook Core Duo 1.83 Ghz | 13.3" | 60HD | 1.0GB RAM
     
Mac Elite
Join Date: May 2001
Location: Manchester, UK
Status: Offline
Reply With Quote
Feb 21, 2006, 02:49 PM
 
You need to get into .htaccess and .htpasswd files which look after access to your website. I would strongly recommend that you read these Apache web pages.

You can configure these files manually if you know a bit of UNIX or by using Weblock if you don't.
     
zro
Mac Elite
Join Date: Nov 2003
Location: The back of the room
Status: Offline
Reply With Quote
Feb 21, 2006, 07:16 PM
 
I suggest using htdigest instead of htpasswd.

Authentication, Authorization, and Access Control

Be aware that AuthName is the realm you assign a user to using htdigest.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:21 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2