We help IT Professionals succeed at work.

EASY: Question on apache.

jdc0724
jdc0724 asked
on
I am using apache/tomcat and have everything working great.  I have a website all developed and working correctly.  I want to host this site for the time being myself.  Here is what I need to do and would like to know how to do it.

1.  I need to register a domain name (are their free ones, if not where do i do this?).
2.  How do I direct that domain name to my site running on my apache server?

I am assuming I need to register a domain name, tell my isp that I have the domain name and would like to serve it off my server at home?  And somehow need to implement all of this..

Thanks,
JDC
Comment
Watch Question

Commented:
easy answer :-)
1. you need to find one of these domain sellers. they do buy domains cheaper from dnic, than you could, because they buy them at dozents or hundrets. you have to find one yourself, because i dont know where youre from and maybe freedoms. de does not fit your requirements. if you want one for free maybe it does. but you rarely will get a free domain without banners ore something.

2. when you want a domain, you normaly have to refer it to the location of your page. your domainseller (or whatever you call it) normaly doesnt give you a domain without this location. so HE does support this.

tip: just find a domainseller.

Author

Commented:
I found a place "www.register.com" that you can purchase a domain name.  I just didn't want to buy one if there are places where you get them for free.  Although, I would rather pay than have a banner displayed on my site.

Right now I use aol as an isp.  I will be getting either cable or dsl in the next couple of weeks.  Do I have to get my domain name from them?  Or can I purchase one from a place like "www.register.com" and then tell my isp that all requests for this IP should be directed to my house (where my server is)????
Dear,

I am answering your queries one-by-one

Domain Registration
--------------------

Say if you want to name your website as 'www.abcd.com' then you need to register a doamin and have to spent some money for that, though you can have free domain registration and hosting but it has some negative aspects say: -

1. You cannot use them as professionaly
2. Overall it is the property of the company who had registered the domain for you.

Better idea is, you plan to purchase domain by ur name.


Routing the request to your premises
------------------------------------
Hosting a website at your premises is not a big deal, but it is not possible on a dial-up account. You need to have a static IP address for that and DSL and CABLE will +vely help you. But try to get additional IP addresses. What you need is just a Linux Box with Apache and static IP.

But, I personally think that managaing the website from your premises would be a problem for you as it has some basic requirements like:-

24hrs Internet Connectivity
Round-the-clock power backup
Security concerns [as ur m/c is open to the world]
and many more......


What I can suggest is that you try to register the domain by ur name and host the site to any ISP as it costs nothings say 10-20 US$ for 5 meg web-space and these people gurranty u 99.8% uptime.

Best of Luck, but let me know the name of your website, as I will be the first person to visit it.

:-)

Annu

Author

Commented:
Annu,  thanks for the response.  I am going to host this site as well as a couple of others from my premise only for a couple of months.  With this in mind I have a few questions regarding your answers.  I will address them one by one also.


Domain registration
-----------------------------------

I will purchase my domain name.


Routing the request to your premises
---------------------------------------------------

Hosting a website at your premises is not a big deal, but it is not possible on a dial-up account. You need to have a static IP address for that and DSL and CABLE will +vely help you. But try to get additional IP addresses. What you need is just a Linux Box with Apache and static IP.

1. I currently am running an ethernet network at my premise, any concerns?

2. You said I need a static IP address.  Is one assigned to me when I get my CABLE connection setup?  Is this different than the address from my NIC card?  

3. You mention getting additional IP addresses..  What do I need these for?  I thought all I needed was to get an IP address for my domain name, plug that IP address into the "apache.conf" file, and notify my ISP to route all requests to my premise????

I will have a box running linux with Apache/Tomcat, but I think I am still a little confused about the process to Host from my premise.


Thanks again for your assistance, and I will definitely get you the name of the site once I have registered it.

 ;-)

JDC
Commented:
jdc0724,

On the routing side, these are some things that would be of concern to me:

1) Protect your network! If you have a spare machine, I'd suggest installing one of the free Unices (personal choice would be one of the *BSD's - OpenBSD has a very good security model http://www.openbsd.org ), enable the firewall and NAT options in the OS, then make that the connection node to the ISP. This would then provide some sort of barrier between the rest of your network (including the webserver) and the outside world.

2) The type of IP address you are given by the ISP would depend on the ISP and type of connection you use. Some use DHCP assignments, which normally assign you the same IP address every time you reconnect, but may be different one day! The IP address you are given would also be different to the one you use on the NIC for the internal network - therefore the firewall machine would need 2 NIC's - 1 for the ISP connection, 1 to the rest of the network.

3) If you use the above example, you will require only one IP address, as that is the machine which connects to the ISP and then routes the relevant requests to the correct machine in the internal network. Then, to get it all working, you'll then need to ensure that the nameserver(s) are updated so that www.yourdomain.tld points to your firewall machine...

Hope that helps!
Pls find enclosed my answers '->'

Hosting a website at your premises is not a big deal, but it is not possible on a dial-up account. You
need to have a static IP address for that and DSL and CABLE will +vely help you. But try to get additional
IP addresses. What you need is just a Linux Box with Apache and static IP.

1. I currently am running an ethernet network at my premise, any concerns?

-> You definitly require a ethernet network, no issues on that.

2. You said I need a static IP address.  Is one assigned to me when I get my CABLE connection setup?
 Is this different than the address from my NIC card?  

-> Yeah, you would require an additional static IP as one you get with your cable connection setup will be just
for the sake of your cable modem. To recognize ur machine over the Internet, it should have a unique IP address.



3. You mention getting additional IP addresses..  What do I need these for?  I thought all I needed
was to get an IP address for my domain name, plug that IP address into the "apache.conf" file, and notify
my ISP to route all requests to my premise????

I will have a box running linux with Apache/Tomcat, but I think I am still a little confused about the
process to Host from my premise.


-> Only a single IP [besides cable modem] can solve your purpose, no need of additional IP addresses. You are right on the technical part, as all you require is to plug that IP address into the "apache.conf" file, and notify
ur ISP to route all requests to ur premise.


Best of Luck for ur new assignment.
:-)
Annu
Commented:
You do not need any static IPs to use a service like DNS2Go.COM.
If you aren't fussy about your domain name, you don't have to buy one of those either.

They will give you one like You.dns2go.com or some other domains they offer, and give you the Dynamic DNS program for free.

Then you need some firewall software/hardware, and if the Web Server is not on the gateway a NAT program.

I've used Wingate from the same folks as DNS2GO.

This combo will let you run with a cable, ADSL, SDSL, T1.. whatever, even while using dynamic IP addressing.

For a permanent solution a static IP with SDAL or T1 is nicer.
 


Try cjb.net. They offer free URL or IP redirection, a POP3 account, and even a nifty program to update your IP address when it changes. (Actually they have a bunch of those programs, depending on the OS and how much you want it to do.)
I've been using their service for a bit less than a year now, and it works quite well. Only had a little downtime once, and that was when they were upgrading servers.

You also might want to take a look at dhs.org, but I haven't used that so I don't have much to say about it.

Oh yeah and you might have a hard time getting Apache to agree with you about running on a dialup connection, especially something like AOL. After a few hours I did manage to get it running with Lycos (back before 1stUp went down) but it's kind of tricky.

Good luck :)
CERTIFIED EXPERT

Commented:
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area with the following recommendation for this question:

Split between annu_vinayak, malsoft, and kinsey

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

periwinkle
EE Cleanup Volunteer

Explore More ContentExplore courses, solutions, and other research materials related to this topic.