Forums | MacLife
You are not logged in.
#1 2009-04-12 7:31 pm
- Shadowless
- Cpl, USMC

- From: Jacksonville, NC
- Registered: 2005-10-10
- Posts: 3061
Revisiting Website Publishing
So a while back I got a .co.nr site and managed to get it to work with pages created with iWeb that I put in my "Sites" folder. Now, 2 years later, I'm trying to do the same thing, and I have no idea what I'm missing here.
My domain is http://supermarine.co.nr and it forwards itself to http://96.36.148.213/ which is my computer. The problem I guess I'm having is that I don't know how to forward it to the index.html or home.html files in the Sites folder in my user. For some reason I was able to figure this out on my own a couple years ago, and I can't for the life of me figure it out now.
Can anyone point me in the right direction?
Offline
#2 2009-04-12 9:39 pm
Re: Revisiting Website Publishing
Visit this domain:
http://localhost
If that loads the expected page, groovy. Your problem is probably in port forwarding on your router.
If it doesn't load, then you need to make sure a) Apache's running b) the root of your webserver is set up to use ~users/Sites as opposed to the default and c) defaults are set to index.html|htm|php|etc. (they probably are, btw).
Last edited by Basseq (2009-04-12 9:40 pm)
Basseq is me, John Whittet.
(Finishing the remainder of the thought expressed in the post has been left as an exercise for the reader.)
Offline
#3 2009-04-13 1:52 am
- Shadowless
- Cpl, USMC

- From: Jacksonville, NC
- Registered: 2005-10-10
- Posts: 3061
Re: Revisiting Website Publishing
Basseq wrote:
Visit this domain:
http://localhost
If that loads the expected page, groovy. Your problem is probably in port forwarding on your router.
If it doesn't load, then you need to make sure a) Apache's running b) the root of your webserver is set up to use ~users/Sites as opposed to the default and c) defaults are set to index.html|htm|php|etc. (they probably are, btw).
I think I need to change the DocumentRoot from the default to the ~users/Sites but I don't know how to change that.
Offline
#4 2009-04-13 1:36 pm
Re: Revisiting Website Publishing
Look in your httpd.conf file - that's usually where it is defined.
Some Apache setups will also have a directory for additional config files and may define it there (IE /etc/httpd/conf.d for example)
In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor
Offline
#5 2009-04-13 2:01 pm
- Shadowless
- Cpl, USMC

- From: Jacksonville, NC
- Registered: 2005-10-10
- Posts: 3061
Re: Revisiting Website Publishing
resedit wrote:
Look in your httpd.conf file - that's usually where it is defined.
Some Apache setups will also have a directory for additional config files and may define it there (IE /etc/httpd/conf.d for example)
I tried Spotlight and serching for it myself, but I can't for the life of me find this httpd.conf file or any httpd with .conf stuff. This is driving me nuts. Last time it wasn't nearly this difficult.
Offline
#6 2009-04-13 9:14 pm
Re: Revisiting Website Publishing
Shadowless:
The first thing you should check, is to make sure Apache is turned on. You do this by going to System Preferences >> Sharing >> Web Sharing.
Make sure the web sharing radio button is ticked. When you finish with that go to http://localhost and see what happens.
Offline
#7 2009-04-13 10:24 pm
- Shadowless
- Cpl, USMC

- From: Jacksonville, NC
- Registered: 2005-10-10
- Posts: 3061
Re: Revisiting Website Publishing
Web Sharing is On.
Localhost shows that confirmation page that Apache is installed.
I think Basseq had it when he said :
Basseq wrote:
make sure the root of your webserver is set up to use ~users/Sites as opposed to the default
I just can't for the life of me find that httpd.conf file resedit pointed me to...
Offline
#8 2009-04-13 11:07 pm
Re: Revisiting Website Publishing
I think you're set then. Go to http://localhost/~YourUserName
You shouldn't need to change httpd.conf
Offline
#9 2009-04-13 11:15 pm
Re: Revisiting Website Publishing
Check the redirect in your modem/router, it sounds like it is pointing to the sites folder instead of ~users/Sites.
The other question is, is there a reason you cannot put the site into the HD/Library/Webserver/Documents folder?
iMac C2D, 2.0 GHz, OS X 10.6.2, 2.5 GB Ram.
Offline
#10 2009-04-16 8:31 pm
- Shadowless
- Cpl, USMC

- From: Jacksonville, NC
- Registered: 2005-10-10
- Posts: 3061
Re: Revisiting Website Publishing
arkayn wrote:
Check the redirect in your modem/router, it sounds like it is pointing to the sites folder instead of ~users/Sites.
The other question is, is there a reason you cannot put the site into the HD/Library/Webserver/Documents folder?
The only reason I wasn't putting them there was because I didn't know where it was. In any case, I gave up hosting it on my computer and decided to go back to my Office Life account since they now allow you to publish using Firefox, not just IE. End result is the same, perhaps even better, albeit less geeky. Oh well. You win some, you lose some.
Offline



