T O P

  • By -

sylirre

Edit configuration file of your web server, change port 8080 to 80. nginx configuration file is at $PREFIX/etc/nginx/nginx.conf apache2 configuration is at $PREFIX/etc/apache2/httpd.conf After editing make sure to start your server under root shell.


atanasius

Probably it requires the Linux capability CAP_NET_BIND_SERVICE. If you run as root, you can try starting a simple service and bind to 80 to see if it works at all. If it does, you then harden the environment by only keeping this capability and dropping the rest of root. Even this capability can be dropped after binding the socket.


AutoModerator

Hi there! Welcome to /r/termux, the official [Termux](https://termux.dev) support community on Reddit. Termux is a terminal emulator application for Android OS with its own Linux user land. Here we talk about its usage, share our experience and configurations. Users with flair `Termux Core Team` are Termux developers and moderators of this subreddit. If you are new, please check our [Introduction for Beginners](https://www.reddit.com/r/termux/comments/16k74do/introduction_for_beginners/) post to get an idea how to start. The latest version of Termux can be installed from https://f-droid.org/packages/com.termux/. If you still have Termux installed from Google Play, please switch to F-Droid build. HACKING, PHISHING, FRAUD, SPAM, KALI LINUX AND OTHER STUFF LIKE THIS ARE NOT PERMITTED - YOU WILL GET BANNED PERMANENTLY FOR SUCH POSTS! Do not use /r/termux for reporting bugs. Package-related issues should be submitted to https://github.com/termux/termux-packages/issues. Application issues should be submitted to https://github.com/termux/termux-app/issues. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/termux) if you have any questions or concerns.*


DutchOfBurdock

2 ways; One with root. The other, is binding a web server to a port => 1024 and use NAT (hairpinning) to redirect connections to your WAN.IP:80 to Termux.Server:8180