QUOTE(sandeep @ May 12 2006, 05:04 PM)

I have learnt that one can host own website using apache web server. Does that mean that I will have to keep my computer ON all the time.
Yes - you'll need a computer that runs 24/7. Throw in a pretty decent speed internet link along with that, else once your site starts getting crowded you might have problems. This computer needs to be running Apache on Windows or Linux (preferrably Linux).
QUOTE(sandeep @ May 12 2006, 05:04 PM)

What about browsing? How will people visit my website. I mean what address will they have to put in the address bar of browser where currently I am putting the address of my website.
For this you'll need to purchase a domain name from a registrar service like GoDaddy.Com. But aside from that, this domain name should be able to point to your web-servers IP address. For this you need to run a DNS (Domain Name Services) server. Think of this like a telephone directory. People access your site by your domain name. Your domain name refers to the DNS (Telephone Directory) to find out your Phone Number (IP Address) and calls up that machine.
If you're using an ADSL link - most likely you won't have a fixed IP. For this service to function properly you need a fixed IP - coz thinking metaphorically, your phone number should remain constant in order for people to reach you correctly every time. However, acquiring a fixed IP costs $$$ - so you can resort to a Dynamic Domain service such as
no-ip.com or
dyn-dns.com, which allows you to hook up your domain name to a non-static IP. You simply run a small client program on your web-server, which updates your new IP at the dynamic dns service's server everytime the IP changes. That way, you domain always points to your latest IP.
QUOTE(sandeep @ May 12 2006, 05:04 PM)

And what all security policies will I need to apply to prevent my computer being hacked. I was just browsing internet when I came to know that a windows based machine gets hacked in 2 days and a Linux based machine in 4 days on average. If that's true, isn't it quite difficult to be connected to internet for a long time and hosting website. I curious to know more about how to host my website on my web server. I have plans to host my website on the LAN I have in my hostel.
It's true that no system is completely hack-proof - but Linux stands a better chance at withstanding hacking attempts. You can configure linux in such a way that it runs only the required services - i.e. HTTPD (Web-server) in your case. That way you can minimize the open ports - which are usually exploited to break into your system.
Now there's this other problem for you too - you are on a LAN in your college. Your machine will have a local LAN IP - which the outside world cannot see. When you connect to the internet or someone tries to connect back to you - they see the main IP of your college's internet routing server. You need to contact your System Administrator and tell him to allow NAT (Network Address Translation) routing to your own computer, so that any requests coming to your domain should be automatically forwarded to your machine. Else such requests will either lead straight to your college web-site (if it has one).. or else get blocked at the first router it meets in an inbound path to your network.
Comment/Reply (w/o sign-up)