How do I host a static website in my old computer that is using Ubuntu (I have it as a media server, it's a normal Ubuntu install)

How do I host a static website in my old computer that is using Ubuntu (I have it as a media server, it's a normal Ubuntu install)

Is it dangerous to host my own stuff as in they can manage to access my entire filesystem?

A Conspiracy Theorist Is Talking Shirt $21.68

Homeless People Are Sexy Shirt $21.68

A Conspiracy Theorist Is Talking Shirt $21.68

  1. 2 weeks ago
    Anonymous

    1) install a web server like apache
    2) setup up apache to serve webpage on some port (doesn't matter which)
    3) set up routing on your router that maps some port to that machine+port (80 is standard for web service)
    4) get your public IP

    now you will be able to navigate to http://public_ip:port and that request will route to your host machine's apache server

    • 2 weeks ago
      Anonymous

      I have a domain name so I can route it to that

      I don't know how to do all that apache stuff, I know nginx is a thing too, they kinda the same?

      Is there a way to keep my website even if my public ip changes

      • 2 weeks ago
        Anonymous

        >I don't know how to do all that apache stuff, I know nginx is a thing too, they kinda the same?
        yeah, pretty much the same

        >Is there a way to keep my website even if my public ip changes
        you'll have to set up a dynamic dns solution

        • 2 weeks ago
          Anonymous

          Is it dangerous to self host

          • 2 weeks ago
            Anonymous

            For you

    • 2 weeks ago
      Anonymous

      If OP doesn't have an static IP (which most anons don't) then they can use dynamic DNS:

      noip.net

      • 2 weeks ago
        Anonymous

        Is that easy to install on Ubuntu

    • 2 weeks ago
      Anonymous

      >apache
      Is it 2008 again?

      • 2 weeks ago
        Anonymous

        Nah then it would be IIS

  2. 2 weeks ago
    Anonymous

    python3 -m http.server

    Done.

    • 2 weeks ago
      Anonymous

      the python built in server is only designed for testing, i wouldn't trust it open to the public
      plus last i checked it doesn't have basic features like seeking, which means no multithreaded downloads, no skipping through streamed media, no resuming interrupted downloads, etc
      for a small and quick to use (just specify folder) web server, try darkhttpd instead, it's a 50k static binary

    • 2 weeks ago
      Anonymous

      the python built in server is only designed for testing, i wouldn't trust it open to the public
      plus last i checked it doesn't have basic features like seeking, which means no multithreaded downloads, no skipping through streamed media, no resuming interrupted downloads, etc
      for a small and quick to use (just specify folder) web server, try darkhttpd instead, it's a 50k static binary

      forgot pic

      Chances are you're behind CG NAT so you will need to cloud/VPS host.

      where do you live that is mostly using cgnat?

  3. 2 weeks ago
    Anonymous

    GitHub Pages

  4. 2 weeks ago
    Anonymous

    AKEBI MUCHO SEXO

  5. 2 weeks ago
    Anonymous

    nginx

    server_name gaisex.com
    listen 80
    root /home/anon/gaisex

    u need a persistent ip
    open port 80 on ur router

    • 2 weeks ago
      Anonymous

      what if I put

      server_name google.com

      what is stopping me from owning google?

      • 2 weeks ago
        Anonymous

        the registrar doesn't know about you, and the CA will flag your certificates, if people try to connect to you through https, with a very ugly error message, telling everyone that you're a deceptive site.

      • 2 weeks ago
        Anonymous

        for one, setting server_name doesn't mean your server can be contacted at that name, you still need to buy a name separately
        server_name is just so your server can respond based on what name users' are connecting from, like so you can serve multiple domains from a single web server with different content

    • 2 weeks ago
      Anonymous

      >u need a persistent ip
      don't have that, what can it be done

      • 2 weeks ago
        Anonymous

        use a dynamic dns provider, there are free ones. basically you run a small daemon on the server or your router that sends your new IP to the provider to update their dns record when your IP changes, so the domain always points to your server

      • 2 weeks ago
        Anonymous

        dynamic dns. you can use something like duckdns i think. or you can have another vps manage this. I'm not the up to date on that so another anon can help.

        • 2 weeks ago
          Anonymous

          use a dynamic dns provider, there are free ones. basically you run a small daemon on the server or your router that sends your new IP to the provider to update their dns record when your IP changes, so the domain always points to your server

          Ok but there is a way
          I'll first start with the server
          thank you all

          I dismiss this thread

  6. 2 weeks ago
    Anonymous

    install any web server, such as;
    - darkhttpd (very tiny, static-only)
    - nginx (current popular option)
    - apache (former popular option, still in wide use)
    there are way to protect the server from possible break ins, making the site static is a great way to start, since that removes a ton of possible attack vectors. other options including running the web server as its' own user (not root or your normal user), most distros do this by default, you can also use the web servers' chroot option, or sandbox the whole web server with something like bubblewrap, so even in the case of someone exploiting the web server, they can only do as much as the web server can, which with a suitably limited sandbox, is not much

  7. 2 weeks ago
    Anonymous

    Chances are you're behind CG NAT so you will need to cloud/VPS host.

  8. 2 weeks ago
    Anonymous

    Qué poronga que son las pitusas de limón

  9. 2 weeks ago
    Anonymous

    you don’t need a fancy public ipv4 setup
    just use a cloudflare zerotrust tunnel with a domain name

  10. 2 weeks ago
    Anonymous

    imagine sponfeeding a moron

    • 2 weeks ago
      Anonymous

      You have the soul of a Black person

  11. 2 weeks ago
    Anonymous

    akebi sex

  12. 2 weeks ago
    Anonymous

    Is this product placement of real brands, or is it fake names?

    • 2 weeks ago
      Anonymous

      Someone edited them in

  13. 2 weeks ago
    Anonymous

    Has anyone compared darkhttp to quark? Is darkhttp used a lot?

Your email address will not be published. Required fields are marked *