Web Sharing

mrmega74

Registered
Hi,

I'm trying to figure out how to get Web Sharing to work. I'm running OS X 10.2.6

I did everything according to the instructions (I think). Set up a Web Pages folder in Sites. Built a html page for some pictures, and set up a URL using my IP address and short name. When I sent myself a test email with the URL in it, it took me back to the instruction page with all the stuff about how to do this, and the Apache info.

I'm thinking something is missing in my system setup, but don't know for sure how to get this working. It's supposed to be real simple:)

Thanks
 
Okay, this is how it works.

In the root /Library/WebServer/Documents folder is the website that is viewed when a user browses to your host, like so:

http://mymac.hostname.wherever/

By default this folder contains the "Seeing this instead of the website you expected" page. Removing this from the /Library/Webserver/Documents folder and putting in your own site here will make it viewable on the address.

If you go to your short username, like this:

http://myhostname.net/~myshortname

Then you'll see the web site stored in your home directory in the "Sites" folder.
This means multiple users on a system can each have their own sites, and only the administrator can change the main page.

By default, it will load "index.html" first, so make sure you take out the page that's already there to put your own page in.

Hope that clears things up for you.
 
Well, I'm still a little confused, a natural state for me. I'm not a "techie", but manage to muddle through most of the time.

I'm looking in the Library/WebServer/Documents folder, and not finding anything that looks like the file you mentioned. Here's what I'm seeing:
apache_pb.gif
index.html.ca
index.html.cn
index.html.cz
index.html.de
index.html.dk
index.html.ee
index.html.el
index.html.en
index.html.es
index.html.fr
index.html.he.iso8859-8
index.html.it
index.html.ja.jis
index.html.kr.iso-kr
index.html.lb.utf8
index.html.nl
index.html.nn
index.html.no
index.html.po.iso-pl
index.html.pt
index.html.pt-br
index.html.ru.cp-1251
index.html.ru.cp866
index.html.ru.iso-ru
index.html.ru.koi8-r
index.html.ru.ucs2
index.html.ru.ucs4
index.html.ru.utf8
index.html.se
index.html.zh
manual
PoweredByMacOSX.gif
PoweredByMacOSXLarge.gif

Most of these are not files that will even open, and the rest are .gif. Any more guidance?

Thanks
 
Don't give the URL's http://localhost or htttp://127.0.0.1 to anyone else... They will only work for you.

To figure out the IP address to give others, go to the Sharing Pref pane... It is the thing called Network Address. (If you click it it may toggle between beign a number and a name.)

If you are using DHCP your IP address will be different each time you restart your machine. Look in the Network > TCP/IP pref pane to see if your are using DHCP or if you have a "manua" (i.e. static) address.
 
Back
Top