Web server 'nginx' on the L5

I was in the need to have a web server on my L5 and so I installed nginx It took me a while to get where exactly its configuration is and I have here what I added now to my file L5hints.txt:

60 Web server nginx

   $ sudo apt install nginx

   config DOCROOT in
   /etc/nginx/nginx.conf:              uncommented
   and
   /etc/nginx/sites-enabled/default:   root /home/purism
                                       location / {
                                            # enable with caution:
                                            # autoindex on;
                                            ...


   start/stop with

   $ sudo systemctl stop  nginx.service
   $ sudo systemctl start nginx.service

   From the FF browser in my laptop use:
   http://192.168.178.59/diario2026/diario.html

HIH someone.

3 Likes

Why don’t you just run docker on it and then spin up an nginx container.

Because it just would be overkill to read my HTML written diary in my LAN.

3 Likes