Create a web host at home: 10 steps (with pictures)

Table of contents:

Create a web host at home: 10 steps (with pictures)
Create a web host at home: 10 steps (with pictures)
Anonim

It is very expensive for a company to hire people who ensure that the website is hosted in its own company premises. To get a website online, a subscription is therefore usually taken out with another company that provides 'web hosting'. Yet it is relatively easy to set up a server for free at home on which you can run your website. All you need is this article, a working internet connection and an old laptop or PC.

Steps

Create a Web Host in Your Home Step 1

Step 1. Download Apache server software

Your old computer will now be called 'web server'. Download the Apache HTTP Server public license on your old computer. This free software is the most widely used server on the internet.

Create a Web Host in Your Home Step 2

Step 2. Double click on the downloaded file to install the software

Fill in the required fields in the dialog box. The requested data is quite arbitrary and you can change it later.

Create a Web Host in Your Home Step 3

Step 3. Select the 'custom install' option in the next dialog box

Change Apache's default folder to the desired folder.

Create a Web Host in Your Home Step 4

Step 4. Go to that folder and look for the 'conf' folder

There you then open the file 'httpd.conf'. Now you can create a root folder for your website in your 'web server', for example 'C:\Web\MyWeb'.

Step 5. In the file 'httpd.conf', change the default root folder of the server document to your root folder

  • In front of

    Create a Web Host in Your Home Step 5Bullet1
  • After

    Create a Web Host in Your Home Step 5Bullet2

Step 6. In the same file, change Apache's default web folder to your own web folder

  • In front of

    Create a Web Host in Your Home Step 6Bullet1
  • After

    Create a Web Host in Your Home Step 6Bullet2
Create a Web Host in Your Home Step 7

Step 7. Create a test page with some HTML code

Write in the page "I am winner!", then save it as "C:\Web\MyWeb\index.html"

Create a Web Host in Your Home Step 8

Step 8. Open port 80 for 'forwarding'

Create a Web Host in Your Home Step 9

Step 9. Find your website. In your web server, open your favorite browser and type the following in the address bar: http://localhost/ Now you should see the page you created in your browser.

Step 10. Search for your own IP address

That is the unique address given to you by your internet provider. Ask someone else to type your IP address into a browser. Your website is now public.

  • For example, if your IP address is 98.227.112.49, ask a friend to type this into their browser:

    Create a Web Host in Your Home Step 10Bullet1
  • Most IP addresses change from time to time, and they are difficult to remember. It must be dynamically maintained, and the address must redirect to other websites.

    Create a Web Host in Your Home Step 10Bullet2

Tips

You need a subscription to a DNS service from a provider. They give you a mnemonic as a website name, and free software that you can install on your web server to keep using the changing IP address. People can see your website by that name. But if you want to choose a name yourself, you have to buy one, you pay a certain amount per year. You can easily forward that name to your provider's dynamic DNS

Warnings

  • For the steps in this article, use a computer that you and your family have not used for anything else.
  • Windows XP should not be used for this purpose for security reasons, Linux is a good alternative that is easy to install and is supported by many popular web service programs.

Popular by topic