Make Your Webserver Without Buying a Domain and Static Ip [adds Free!!!]

by md.zaid.58760 in Circuits > Software

18 Views, 0 Favorites, 0 Comments

Make Your Webserver Without Buying a Domain and Static Ip [adds Free!!!]

apache_webserver_logo.png

Hello, Here i will guide you to run a webserver without static ip and the best part- it will be completely free and no adds too. So for domain we will use sub-domains and for static ip i have developed some scripts which will take care of it, these scripts are almost platform independent and can be run on raspberry pie, linux pc and android . This whole system is quite like dns system.
I assume that you have already setuped a webserver on rpi / android / pc. I will be refering to it as "main server"

First download this zip file and extract it somewhere.

Create an account on any free hosting website ( i would prefer this). We will be using it for redirecting and its domain will be the domain of our main server.

Now upload ip.php & index.php (from the downloaded zip) on your free webhosting server.

Now we need to edit the "main" script (from the zip file). Open it and replace www.myworks.site90.com with the domain of your free web hosting.

Dont remove "wget " or "/ip.php" from that line. So if the domain of your free webhosting is "www.mysite.com" then the final line will be "wget http://www.mysite.com/ip.php"

Execute "main" script by navigating to folder containing it and typing "sh main" in terminal.
Note: This script will keep running, so just minimise the terminal ( dont close it) .

Now test by typing the domian of ur free webhosting in web browser and you will see the webpage located on main server.