Apache2 Termux : Make Your Website Live with Ngrok
So in this post, I am gonna tell you how you can make your website live using Ngrok, using this method you will be able to make a sharable link and you can share that link to anyone and they will be able to access your Private website.👾
What is Apache2 and Ngrok in Termux?
The Apcahe2 web server is an Open source software that helps you to create and run your webserver on almost any device. The Real name of this software is apache HTTP Server. Almost 40% of websites on the internet are still running using the Apache webserver.
Ngrok is a Cross-platform application that allows you to expose your local server to the internet with simple Steps. It is one of the most famous tools in hacking, most of the phishing page use Ngrok to perform phishing on public IPs. You can install Ngrok in termux to make a URL of your Local Webserver. And People can actually use this URL to Visit your Private site which is hosted on your Termux.
If you like to visit the official apache Webserver website then here is the link: Apache.org and if you want to know more about Ngrok then you can visit the official Site of Ngrok @Ngrok.com.
Make Your Website Live with Ngrok :
This is the Step By Step Process to
make your Termux apache server live.
Before doing these steps make sure you already have an apche2 webserver in your Termux. If you don't have a Running web server then Please read this post first : [
Apache2 Termux : Install and Use Apache2 Server in Termux].
Setup Ngrok in Termux:
To make a Live URL of our website we will need to install and setup the Ngrok in Termux for that you just have to follow 3 simple steps.
Step 1:
First of all, We need to install the Ngrok bash file in Termux, we can do it manually but using the below command you will be able to directly download it in your termux app. Just paste the below command in Termux and wait till it finishes.
pkg install wget -y && https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip
Step 2:
Now, If you type ls you will be able to see the zip file of ngrok and we need to extract it. For
that, we will use unzip command in termux. Unzip does not comes
preinstalled in termux so we also need to install it before we unzip the
file. Just paste the below command it will be done automatically.
unzip ngrok-stable-linux-arm.zip
Step 3:
The installation is done but we have to authenticate our Ngrok with a Ngrok token, For that you just have to follow these 3 simple steps.
1 :
Open the below link and it will open the Ngrok Sign-up page. Just login with your Google account (it is completely safe). [Ngrok Signup Page Link].
After SignUp, you will see your Dashboard of the Ngrok.
2 :
Now on the website, you see an authentication token line, Copy the full like I have shown in the below picture.
3 :
Now The Authotoken is copied on your phone and you just have to paste it on your termux app where we have the ngrok bash file.
And as soon as you Enter the Auth-token, the setup will be completed.
Create Live Web server URL with Ngrok in Termux:
Step 1:
Run Your apache webserver,
If you already don't have apache webserver in your phone read this post
[Apache2 Termux : Install and Use Apache2 Server in Termux]. use the
below command to start the apache webserver in termux.
apachectl
Step 2:
Start the ngrok using the below command at port 8080, and it will create a sharable link, which you can share with anyone and te will be able to access your page. Before Running this command Please Turn on Your Hotspot or it won't work.
./ngrok http 8080
Step 3:
Copy the Forwarding link created by Ngrok and send it to your friend or just open it in a browser.
And Now when you will paste
the Link in a Browser you will see the index.html page in your
webserver, Make sure you edit to make it look like a decent website. Below you can see I copied the Source code of the Blogger profile page and it is looking perfect.
Using this method you can create your own live static website in your Termux app.
Post a Comment