Quantcast

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?


http://imagegen.last.fm/Awesome35/artists/3/ShadowlessDJ.gif
http://dragcave.net/image/Z3Ai.gifhttp://dragcave.net/image/Ss7K.gif

Offline

 

#2 2009-04-12 9:39 pm

Basseq
Fixxy of F&S fame
From: D.C.
Registered: 2002-12-18
Posts: 3125
Website

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.


http://imagegen.last.fm/Awesome35/artists/3/ShadowlessDJ.gif
http://dragcave.net/image/Z3Ai.gifhttp://dragcave.net/image/Ss7K.gif

Offline

 

#4 2009-04-13 1:36 pm

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 50371
Website

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.


http://imagegen.last.fm/Awesome35/artists/3/ShadowlessDJ.gif
http://dragcave.net/image/Z3Ai.gifhttp://dragcave.net/image/Ss7K.gif

Offline

 

#6 2009-04-13 9:14 pm

yoshu
Member
Registered: 2009-04-13
Posts: 3
Website

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...


http://imagegen.last.fm/Awesome35/artists/3/ShadowlessDJ.gif
http://dragcave.net/image/Z3Ai.gifhttp://dragcave.net/image/Ss7K.gif

Offline

 

#8 2009-04-13 11:07 pm

yoshu
Member
Registered: 2009-04-13
Posts: 3
Website

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

arkayn
Addicted to TIVO
From: Golden Valley
Registered: 2000-03-02
Posts: 5472
Website

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.


http://imagegen.last.fm/Awesome35/artists/3/ShadowlessDJ.gif
http://dragcave.net/image/Z3Ai.gifhttp://dragcave.net/image/Ss7K.gif

Offline

 

Board footer

Powered by PunBB 1.2.6
© Copyright 2002–2005 Rickard Andersson