I just want to make my IP public, so that it can be accessed from any where.I am using ubuntu 18.04
. Already installed apache2 and PHP. The index file located in /var/www/html/example.com/public_html/index.php
. In local host it is running and with in the same network i am able to access my website. Also made some changes in firewall.
here is my /etc/hosts
file configuration
127.0.0.1 localhost
127.0.1.1 amal
127.0.0.1 www.example.com
127.0.0.1 example.com
And etc/apache2/sites-avaliable/example.com.conf
file configuration
<VirtualHost *:80>
ServerName www.example.com
ServerAlias example.com
ServerAdmin admin@example.com
DocumentRoot /var/www/html/example.com/public_html
ErrorLog /var/www/html/example.com/log/error.log
CustomLog /var/www/html/example.com/log/access.log combined
</VirtualHost>
with this configuration i am able to access this webpages with my IP(192.168.255.24) any locally connected device. Now i want to public my IP and can access these webpages from anywhere, I don't know much about this. I followed some tutorials but failed. This is Firewall status
command
ufw status
outputStatus: active
To Action From
-- ------ ----
Apache Full ALLOW Anywhere
80 ALLOW Anywhere
443 ALLOW Anywhere
8080 ALLOW Anywhere
Apache Full (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)
And in my jiofi router portforward included my 192.168.255.24
with port 80
but when ever i tried to access my website with the global IP, got from canyouseeme.org
it displays The connection has timed out
. How to solve this problem please help