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?

Homeless People Are Sexy Shirt $21.68

Yakub: World's Greatest Dad Shirt $21.68

Homeless People Are Sexy Shirt $21.68

  1. 3 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

    • 3 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

      • 3 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

        • 3 weeks ago
          Anonymous

          Is it dangerous to self host

          • 3 weeks ago
            Anonymous

            For you

    • 3 weeks ago
      Anonymous

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

      noip.net

      • 3 weeks ago
        Anonymous

        Is that easy to install on Ubuntu

    • 3 weeks ago
      Anonymous

      >apache
      Is it 2008 again?

      • 3 weeks ago
        Anonymous

        Nah then it would be IIS

  2. 3 weeks ago
    Anonymous

    python3 -m http.server

    Done.

    • 3 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

    • 3 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. 3 weeks ago
    Anonymous

    GitHub Pages

  4. 3 weeks ago
    Anonymous

    AKEBI MUCHO SEXO

  5. 3 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

    • 3 weeks ago
      Anonymous

      what if I put

      server_name google.com

      what is stopping me from owning google?

      • 3 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.

      • 3 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

    • 3 weeks ago
      Anonymous

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

      • 3 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

      • 3 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.

        • 3 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. 3 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. 3 weeks ago
    Anonymous

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

  8. 3 weeks ago
    Anonymous

    Qué poronga que son las pitusas de limón

  9. 3 weeks ago
    Anonymous

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

  10. 3 weeks ago
    Anonymous

    imagine sponfeeding a moron

    • 3 weeks ago
      Anonymous

      You have the soul of a Black person

  11. 3 weeks ago
    Anonymous

    akebi sex

  12. 3 weeks ago
    Anonymous

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

    • 3 weeks ago
      Anonymous

      Someone edited them in

  13. 3 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 *