NGINX web server on Libertine, it works :-)
-
It's in autostart (static web page) and works even when the screen is off : http://libertine.ddns.net:88
As far as I know, the ip address provided by mobile network operators usually does not allow to host a site, I used the static ip of my vpn (openvpn installed on my vps) so when my Xiaomi is connected to my vpn (is disconnected only when I it use as a hotspot) site will be online.
-
@br1 Wow !! How cool is that !
-
@br1 care to give more details so others could replicate your success?
-
@arubislander I describe in broad outline ...
relative to vps/vpn (which allows you to have an ip reachable) it is set to redirect the requests received on port 88 to a specific vpn client (my xiaomi) and vice versa (there are 2 iptables rules)
regarding the auto start of nginx, in upstart :
description "Libertine - start nginx" start on started unity8 exec /home/phablet/.aa_myscripts/nginx.sh
nginx.sh :
#!/bin/sh sleep 3 ; sudo chroot /home/phablet/.cache/libertine-container/mylinux/rootfs /bin/bash -c "./startup.sh"
in libertine root : startup.sh
#!/bin/sh service nginx start
one more thing, due to dns changes I've made I could no longer install any program (from gui or libertine-container-manager) so i used chroot, I have reset dns, installed and configured nginx without any particular problems ... do you have more specific questions ?
-