This is a python script that allows you to create a web server with termux in android.
To run this program open termux and write the above commands First download the repo
git clone https://github.com/mossygr/android_server.git
Second you need to install the requirements
./requirements.sh
Next you need the set the right privilages for the python progrm
chmod +x server.py
Ok and you are ready to go type
python server.py