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?
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?
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
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
>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
Is it dangerous to self host
For you
If OP doesn't have an static IP (which most anons don't) then they can use dynamic DNS:
noip.net
Is that easy to install on Ubuntu
>apache
Is it 2008 again?
Nah then it would be IIS
python3 -m http.server
Done.
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
where do you live that is mostly using cgnat?
GitHub Pages
AKEBI MUCHO SEXO
nginx
server_name gaisex.com
listen 80
root /home/anon/gaisex
u need a persistent ip
open port 80 on ur router
what if I put
server_name google.com
what is stopping me from owning google?
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.
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
>u need a persistent ip
don't have that, what can it be done
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
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.
Ok but there is a way
I'll first start with the server
thank you all
I dismiss this thread
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
Chances are you're behind CG NAT so you will need to cloud/VPS host.
Qué poronga que son las pitusas de limón
you don’t need a fancy public ipv4 setup
just use a cloudflare zerotrust tunnel with a domain name
imagine sponfeeding a moron
You have the soul of a Black person
akebi sex
Is this product placement of real brands, or is it fake names?
Someone edited them in
Has anyone compared darkhttp to quark? Is darkhttp used a lot?