Hosting your own website?

So… I made a small webpage. 1 .html file, 1 .css file and 1 .js file. I want to put it out on internet.

I’ve tried free website hosts such as wix, but all they have are template based solutions. I can’t find a way to directly write code there.

Is there such a website host, that allows you to just slap your code in for free?

If not, I’ve also been thinking about hosting the website from my own PC. But as far as that goes… I have no idea how to do it.

Is there any hope for a lost soul such as mine?

github pages

would require you to expose pc to the internet; not advised.

If you have a secure server, maybe.

actually you can do it with wix. You need to create an empty html widget box and then copy paste all you code into there. Not an elegant solution but doable.

I know nothing. However I want to do the same thing. How about AWS [Amazon Web Services]? Apparently free for the first year and then you only pay for traffic to your site. I’ve heard as low as $0.30/month.

Should use Heroku

Totally free tier, but it has some lag for the app is waking up. Note it uses AWS S3 buckets for is a much more simplified interface and takes like 30 seconds to get up and rolling.

3 Likes

Appengine maybe?

You’d need to write a short manifest in yaml, but there’s a free tier.

Heyyy I found a way. A way more simple way … GitHub Pages… Was it really that simple? xD

2 Likes

Glad my suggestion helped.

Gitlab also has a pages btw.

3 Likes

Thanks for the help :slight_smile:

Here is a completley free hosting service: https://www.000webhost.com/.

I’m not sure about using custom domain names though but they let you choose a subdomain!

1 Like

You can register FREE VPS at Amazon , They have free tier with 750 hours/ month in 12 Month. Choose Ubuntu OS then install LAMP for web server. Good luck.

2 Likes

Another solution is https://surge.sh/ or https://glitch.com/. Surge is probably closer to what you’re looking for, glitch.com allows for fullstack projects (as long as they use JS fullstack)

1 Like

Thanks for valuable information sharing here!!!

1 Like

Google Firebase also have an option that’s free.

It has an interesting title/intro but this article cuts to the chase on how to host simple html, css, & js files on an S3 bucket and set it up as a site.
https://blog.hartleybrody.com/static-site-s3/

I go the self hosting route for web and email with a residential connection. I get around the port blocking and non static ip by using an EC2 instance. My ec2 instance has a public static ip (4 & 6) address with reverse dns records to make email servers happy. The EC2 instance just hosts an openvpn server to which an openvpn client on my home router connects. My EC2 instance just forwards all incoming traffic on ports 80 and 443 to my nginx server, and all incoming traffic on ports 25, 143, 587 to my postfix/dovecot server.

My AWS bill for March was $2.45. Most of that was the 744 hrs for the ec2 instance at the rate of $0.002 per hour since I reserved an instance for 3 years I think. I also used $0.20 worth of bandwidth.

As cheap as that is, I don’t think you could fairly considered the setup simple. Even if you drop ipv6 support, it’s way easier to just use a hosting service if all you have is a realtively simple webpage.

You can move to the paid hosting then you can easily manage and edit all your files.