Host your website on your Linux box
===================================
I'm actually a beginner and just learned this myself, hopefully this tutorial is
accurate enough.
First open Terminal. A common keyboard shortcut to do this on most distros is
CTRL + ALT + T.
Install apache webserver software by running this command:
sudo apt-get install apache2Run this command:
ifconfig | grep "inet addr"In the output, find your LAN ip address that starts with 192.168.
Enter this:
route -n | grep "UG"In the first line of output, the address starting with 192.168 should be your
router/gateway.
Go to your browser and navigate to the address of your router.
Log in and configure a new port forwarding rule to have requests to your LAN
IP address to start on port 80 and end on port 80.
Now all you need to do is find your internet ip address (whatismyip.org)
and give it to the world so other people can see your website.
More info:
Your web directory is, by default, located in /var/www/
edit index.html and add more files to your desire.
If the port is not 80 then enter: grep "Listen" /etc/apache2/ports.conf
The first line of output will be the port.
If you forgot your router username, then google your router model
or go to Default Password List
if you forgot your router password and it's not the default password, then
reset your router by holding that small button at the bottom or on back
of it for like 30 seconds.
dyndns.org allows you to register an almost custom domain name for your
ip address for free.


Sign In
Create Account




Back to top









