How to make HTTP access available to my apache web service on Linux

Asked

Viewed 1,006 times

1

For a simple programmer we are used to creating web servers and working on localhost, my big question is, and when it comes to leaving this server online?

Today we have cloud but would like to know when I have my local server the way I do this setting to provide access.

Example:

I have the IP address of my 99.999.999.99 machine

How to expose the address of my machine so that anyone accessing my web page will fall?

  • just put your public ip and release the ports on your router / firewall... the default http port is 80

  • 1

    https://ngrok.com/ much safer and simulates ssl

  • https://answall.com/a/206698/69359

  • Is there a tutorial teaching step by step? In addition to helping me can help a lot more people who are going through this of configuring kkkk server

  • Detail, I browsed a lot on the net and no tutorial said how to make IP available on the web and direct to the web server. So I decided to ask here

  • @Rovannlinhalis, linked an answer that answers your question exactly, if you want an alternative I can answer

  • Just take away a doubt, from the moment I create an entry rule providing a port my IP address at this time is already public, right? Then I just start the server the same way we do in development and put it in the same port I created the input rule. That way when someone requests my IP on this port they will have my website. That’s right?

  • If you have to take some things into account: your IP is fixed?

  • Yes, it is fixed. But it would be nice if you could show example if it were dynamic

  • So if it is dynamic, you will only have access, while under your concession. If you change there you will have to access with the new...

Show 5 more comments

1 answer

0

Create an account on NO-IP https://www.noip.com/pt-BR and configure, there is a lot of tutorial about it on the net.

I imagine your webserver is running on your local network. Now you just redirect port 80 on your router to the insterno ip of your webserver.

Let’s say you created the following host on NO-IP meuservidor.hopto.org

just vc pass this url to anyone outside your internal network Example: http://meuservidor.hopto.org

Ready, your webserver will be accessible all over the internet. ;)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.