I am new to this whole section of hosting services. I looked up online on how to self host my website, and all the websites told me to set up the software (Apache server) and open port 80 to make my IP public, that's where this question came to me. Would it be safe to open port 80 and host a website that is available for the public? I would be using my home/personal computer, and that getting hacked would give me a tough time.

Thank you all in advance for the help!

closed as off-topic by Ron Maupin, Mike Pennington, Ricky Beam, Craig Constantine Jan 12 '16 at 20:41

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "NE is a site for to ask and provide answers about professionally managed networks in a business environment. Your question falls outside the areas our community decided are on topic. Please visit the help center for more details. If you disagree with this closure, please ask on Network Engineering Meta." – Ron Maupin, Mike Pennington, Ricky Beam, Craig Constantine
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Questions about home networking are specifically off-topic here, but you can ask those questions on Super User. – Ron Maupin Jan 12 '16 at 16:44
  • Sorry about that, there are so many categories that it is hard not to get confused on what to post XD – arthrax Jan 12 '16 at 17:40

Opening any service to the internet carries a risk. How big that risk is depends on a number of factors including.

  1. What privilages is the server running under? A server running as root (or your operating system's equivilent) is obviously a higher risk than one running as a dedicated low-privilage user but note that privilage escalation bugs do happen.
  2. What is the server doing? A webserver than only supports static content is much lower risk than one running a complex webapp.
  • So technically if I run the server in a virtual environment, it is safer than running it on the real computer? Thanks! – arthrax Jan 12 '16 at 17:41
  • No, it isn't. This is a question for the security stackexchange. – Ricky Beam Jan 12 '16 at 20:39

You should run the Webserver in an isolated vitual machine withput an access to the rest of your network. You can do this with VLAN for example.

Not the answer you're looking for? Browse other questions tagged or ask your own question.