BeatTakeshi@lemmy.world to Selfhosted@lemmy.worldEnglish · 9 months agoUsing Termux on Android for Self Hosting? Yes, really. – The Thin Computerthin.computerexternal-linkmessage-square15fedilinkarrow-up171 cross-posted to: selfhosting@slrpnk.nettechnology@lemmy.world
arrow-up171external-linkUsing Termux on Android for Self Hosting? Yes, really. – The Thin Computerthin.computerBeatTakeshi@lemmy.world to Selfhosted@lemmy.worldEnglish · 9 months agomessage-square15fedilink cross-posted to: selfhosting@slrpnk.nettechnology@lemmy.world
minus-squareParagone@lemmy.worldlinkfedilinkEnglisharrow-up3·9 months agoI am trying to lear basic HTML/CSS/JavaScript ( again, last learned HTML back in the 1990’s, am using “JavaScript: The Good Parts” & other books ), & have discovered that you can have, on the same phone/tablet, Termux/Nginx running, you have to feed /data/data/com.termux/files/usr/etc/nginx/nginx.conf the root-dir you want it to use ( which is actually in a proot-distro install, down below /data/data/llcom.termux/files/usr/var/lib/proot-distro/installed-rootfs/ … ) … and then you can have your browser hit http://localhost:8080/ and it’ll grab index.html. Notice that that is http, NOT httpS. None of the browsers I’ve tried can get the default connection to localhost, because they all default to https, & nginx isn’t serving https. That wasted an entire fscking day, to discover. Now learning can begin!
I am trying to lear basic HTML/CSS/JavaScript ( again, last learned HTML back in the 1990’s, am using “JavaScript: The Good Parts” & other books ),
& have discovered that you can have, on the same phone/tablet, Termux/Nginx running,
you have to feed /data/data/com.termux/files/usr/etc/nginx/nginx.conf the root-dir you want it to use
( which is actually in a proot-distro install, down below
/data/data/llcom.termux/files/usr/var/lib/proot-distro/installed-rootfs/ … )
… and then you can have your browser hit
http://localhost:8080/
and it’ll grab index.html.
Notice that that is http, NOT httpS.
None of the browsers I’ve tried can get the default connection to localhost, because they all default to https, & nginx isn’t serving https.
That wasted an entire fscking day, to discover.
Now learning can begin!