Is there a good alternative to github pages? I need just a static website up.

  • I have a domain.
  • I have my site (local machine)
  • And that’s all I have.
  • I have a machine that could be running 24/7 too.
  • csm10495@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    Something that may help:

    Why doesn’t GitHub Pages fit your use case? It’s nice to get free static hosting from them.

      • csm10495@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 months ago

        In what way? Anything on the public internet is likely being used for AI training. I guess by using free GitHub you can’t object to training.

        Then again anywhere you host you sort of run into the same problem. You can use robots.txt, but things don’t have to listen to it.

        • jqubed@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          6 months ago

          Self-hosting there are some ways to fight back, or depending on your opinions on Cloudflare it seems they’re fairly effective at blocking the AI crawlers.

            • iveseenthat@reddthat.comOP
              link
              fedilink
              English
              arrow-up
              0
              ·
              6 months ago

              How do I do this? I don’t mind (and may prefer) to host not at home. My main concern with GH is that you become an AI snack whether you like it or not.

  • alpha1beta@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    Digital Ocean’s app platform offers a toer tier to deploy static sites from Github and a few other places.

  • miss phant@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    6 months ago

    Besides other pages alternatives you could try a cheap vps. They start as low as $10/year and any will be plenty for a static site. It’s also fun to play around with hosting other stuff. lowendbox.com has some good listings.

  • hobbsc@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    Your DNS provider may offer static hosting as a paid service. I’m using porkbun and their static hosting is pretty cheap, plus they handle SSL and whatnot for me.

  • neidu3@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    6 months ago

    Ok, so I must’ve misunderstood the question, because to me it seems OP already has all the necessary ingredients to bake this dish. And yet, the vast majority of comments recommend various 3rd party services which is the complete opposite of selhosting.
    Fire up nginx/apache2, and all good, no? What am I missing?

    • LifeInMultipleChoice@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 months ago

      I was confused when I read it as well, at least I know now that I wasn’t alone. I think the next step is just opening a text editor and starting with <html></html> Forward a couple ports, maybe use caddy to route the port internally but it isn’t needed. Although if you use NOIP with Caddy getting the https cert setup seems to be pretty easy.

    • iveseenthat@reddthat.comOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 months ago

      Hi, thanks for the comment. I have the page. But I don’t know how to make the page accessible from the web.

      I have a router at home that my ISP provided (I cannot even login to it) which provides WiFi and have a couple of Ethernet ports.

      I don’t know if it is possible to make my page available to the world from behind this soho

      • neidu3@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 months ago

        Are you able to ask your ISP customer service to set up port forwarding for you?

        At minimal you want HTTP, but you probably want 443 as well. If you’re hosting DNS as well you will need port 53 too.

        Have those ports routed to the “inside” IP of the machine you want to use, and the rest of it is basically just setting up the webserver (and possibly DNS) to serve your domain.

        NB: While on the phone with your ISP, ask them what the DHCP lease time is. Ideally you want a static IP for your setup.

      • Zos_Kia@lemmynsfw.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 months ago

        I honestly wouldn’t recommend it if you don’t have a minimum of security knowledge. The moment your home server pops up with a domain name it will get scanned by shady actors and possibly exploited.

  • AnarchistArtificer@slrpnk.net
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    I recently used Jekyll (https://jekyllrb.com/) as a static site generator. I found it easy to use. I personally used Gitlab pages, because I didn’t feel confident hosting on my home internet (didn’t want to inadvertently cause issues for my housemates when I’m still learning this stuff).

    The nice thing about static sites is that it’s pretty easy to find free or extremely cheap hosting for them.

  • SolidGrue@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    So, uh…

    Digital Ocean Is pretty inexpensive at US$7 monthly for 1 vCPU/1GB RAM with 1TB transfer. Decent platform. US-based, alas.

    (2025 September, for the archives)

  • Cousin Mose@lemmy.hogru.ch
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    Use any static site generator and build a Docker container. You could even try out this idea though its lack of http/2+ support might not make it the best option.

      • Cousin Mose@lemmy.hogru.ch
        link
        fedilink
        English
        arrow-up
        0
        ·
        6 months ago

        I think it depends on the number of assets. Generally speaking you’re probably right, but if there are a lot of small files it would be a lot smoother to load them over http/2.

        • atzanteol@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          0
          ·
          6 months ago

          There is zero question about it. It will be absolutely fine for some dude’s static website over a residential internet connection.

  • poVoq@slrpnk.net
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    Some domain registers offer free webspace with the domain. OVH for example gives 100mb (incl. php) which is more than sufficient for a simple website.