How Can I Secure My Static Express Site When Switching to Port 80/443?

0
7
Asked By TechWizard42 On

I've set up a static website using an express application on an extra desktop, and it's currently accessible through my public IP address on port 8080. The app is only serving static files like HTML, CSS, GIFs, and MP4s. I want to switch to ports 80 and 443 for standard web traffic but I'm concerned about security. I've read that these ports are more frequently targeted for vulnerabilities, and I'm not well-versed in cyber security. What steps should I take to keep my site and network secure during this transition? I'm not using a reverse proxy yet, and I found it overwhelming trying to integrate Apache with my express setup.

1 Answer

Answered By CuriousDev87 On

If your site is purely static, have you thought about why you’re self-hosting it? You could easily move everything to a GitHub repo and host it for free on platforms like Netlify or GitHub Pages. This way, you'd avoid most security concerns.

TechWizard42 -

I just wanted to try self-hosting for fun. It’s just a hobby project for me.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.