├── screenshot-nexus5.png ├── nginx-v1.11.5-termux.tgz └── README.md /screenshot-nexus5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrwj/termux-nginx/HEAD/screenshot-nexus5.png -------------------------------------------------------------------------------- /nginx-v1.11.5-termux.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrwj/termux-nginx/HEAD/nginx-v1.11.5-termux.tgz -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # termux-nginx 2 | 3 | Precompiled NginX binary for running in [Termux/Android](https://termux.com) 4 | 5 | ![screenshot](https://raw.githubusercontent.com/andrwj/termux-nginx/master/screenshot-nexus5.png) 6 | 7 | 8 | Compiled options 9 | ----------------- 10 | ```bash 11 | ./configure \ 12 | --prefix=/data/data/com.termux/files/usr/share/nginx \ 13 | --pid-path=/data/data/com.termux/files/usr/var/run/nginx.pid \ 14 | --lock-path=/data/data/com.termux/files/usr/var/log/nginx.lock \ 15 | --http-log-path=/data/data/com.termux/files/usr/var/log/nginx/access.log \ 16 | --with-http_ssl_module \ 17 | --with-stream \ 18 | --with-compat 19 | ``` 20 | 21 | 22 | 23 | Installation 24 | ------------ 25 | 26 | Copy .tgz file into termux and extract on `/data/data/com.termux/files/usr/share/`. Don't forget to make `log` directory. 27 | 28 | ```sh 29 | $ cd 30 | $ mkdir -p ../usr/var/log/nginx 31 | $ cd ../usr/share/ 32 | $ tar xvfz nginx-v1.11.5-termux.tgz 33 | $ ls -F ./nginx/ 34 | client_body_temp/ conf/ fastcgi_temp/ html/ logs/ proxy_temp/ sbin/ scgi_temp/ uwsgi_temp/ 35 | $ cd ./nginx/sbin/ 36 | $ ./nginx -V 37 | nginx version: nginx/1.11.5 38 | built with OpenSSL 1.0.2j 26 Sep 2016 39 | TLS SNI support enabled 40 | configure arguments: --prefix=/data/data/com.termux/files/usr/share/nginx --pid-path=/data/data/com.termux/files/usr/var/run/nginx.pid --lock-path=/data/data/com.termux/files/usr/var/log/nginx.lock --http-log-path=/data/data/com.termux/files/usr/var/log/nginx/access.log --with-http_ssl_module --with-stream --with-compat 41 | ``` 42 | 43 | 44 | nginx version 45 | ------------- 46 | v1.11.5 47 | 48 | Compiled at Nov. 12 2016 by [@andrwj](http://twitter.com/andrwj) 49 | --------------------------------------------------------------------------------