I am using nginx as the web server for weewx on an RPi3, and all works well 
until I try to minimize writes on the SD as suggested to prolong its life. 
Once I do that, the web page loads but will never update. Here are the 
exact commands I used (deb install):

1.  echo "weewx_reports /var/weewx/reports tmpfs 
size=20M,noexec,nosuid,nodev 0 0" | sudo tee -a /etc/fstab

2. sudo mkdir -p /var/weewx/reports

3. sudo mount -a

4. sudo sed -i -e 's%HTML_ROOT =.*%HTML_ROOT = /var/weewx/reports%' 
/etc/weewx/weewx.conf

5. sudo /etc/init.d/weewx stop

6. sudo /etc/init.d/weewx start

7. sudo ln -s /var/weewx/reports /var/www/html/weewx

8. sudo /etc/init.d/nginx restart

I am using the /etc/nginx/sites-available/default file. I tried replacing 
the server name in the default file with this:

server {
  ...
  location /weewx {
    alias /var/www/html/weewx/index.html;
  }
}

as recommended on another of the wiki pages, but nginx will not start with that 
configuration. nginx finds the weewx page with the default file. Any 
suggestions to make this work? Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/2471ea4e-2805-401e-aa17-1073ad706d6f%40googlegroups.com.

Reply via email to