godaddy, yahoo domains and apache

Robizzle01

Limp Gawd
Joined
Sep 30, 2005
Messages
159
I've purchased domain names from both godaddy and yahoo and probably didn't do the research that I should have before I started. I'm running apache on my gentoo linux box and can't find anywhere how I can get all the settings working the way they should. Let me explain the several problems i'm having...

1. Forwarding
With both godaddy and yahoo, I can set them up to redirect to my ip address. Godaddy also will forward subdirectories as it should -- if a user enters www.domain.com/subdir it will properly forward to http://my.ip.ad.dr/subdir. However, yahoo domains wont redirect. If a user enters www.myyahoodomain.com/subdir it just takes them to http://my.ip.ad.dr. Is there any way to fix this. If there is no way to fix this, is there any way I can transfer my yahoo domain over to godaddy? I bought a 5 year subscription from yahoo because of the price and before I knew that they wouldn't forward subdirectories.

2. Masking
Both godaddy and yahoo domains have support for masking. This means that when a user enters www.domain.com it will redirect to http://my.ip.ad.dr, however, thier browser window still displays www.domain.com. This is a good thing, except, no matter what links they click on while on my site, the address bar will never update. It looks like they accomplish masking by loading my webpage into one massive frame so that my webpage is simply nested inside of the one whose true address is www.domain.com.

Needless to say, I can't keep this feature turned on. I can have a link on my page to hardforums.com and even after the page loads, the user's address bar still says www.domain.com. Even worse is that when the user goes to bookmark any part of my webpage, their browser will only bookmark my root page since that is what is in the address bar instead of properly bookmarking whichever page they are on.

So, my question for you guys is as follows. Is there any way for me to set up apache, godaddy and/or yahoo domains so that I can have full support for forwarding, subdirectory forwarding, and url masking? And if so, could you please give me some examples. I've searched all over and can't find good information about what I should put in my apache config files.

My problem is also compounded by the fact that this computer is going to be serving multiple unrelated websites. http://my.ip.ad.dr/home will be my personal site, /mom may be a page i end up hosting for my mother, /company1 may be a website that I'm hosting for a business, etc... (I'm not doing this currently but i'd like to have support for it down the line should I ever want to.)

Thanks for any help you guys can give me. I've spent a long time looking around at this stuff and I just can't find any information. It seems like the only people that buy domains are those that already know this stuff so there isn't an abundance of help sites.
 
Why aren't you just using DNS? That's the proper way of doing this and would take care of all the problems you mentioned. Just set an A record for your domains to your IP address.

Apache allows you to have different sites in different directories with a feature called virtual hosts. Basically it allows you to specify different root directories for different domain names(or IP addresses, but that's not applicable to this situation, I assume).
 
So I poked around in godaddy's DNS section and found a page where I can manage all of this stuff. I don't want to screw anything up so thought I'd check with you before making any changes.

godaddy_settings.jpg


Is simply changing the first line under the "A Host" section to my ip address all I need to do? I assume once I do this I should also turn off my domain forwarding? Also, what if any settings in apache will I have to configure on my server? Will the address bar in visitor's browsers have my ip listed or my domain name?
 
Yes, change the host ip to your ip. All of the issues listed above will be resolved.

As for apache, you'll have to edit /etc/httpd/conf/httpd.conf, scroll down to the bottom and you'll see a section for the VirtualHosts. This is were you list your multiple domains. I would suggest you read up a bit on Vhosts before editing httpd.conf.
 
Back
Top