On Wednesday, December 27, 2023 at 10:37:13 AM UTC-8 [email protected] wrote:
I have installed version 5.0.0rc1 with the pip method on a new VM (Debian Bookworm). I want to use nginx as web server. When calling xxx.xxx.xxx.xx I get from NGINX: 403 Forbidden This means a rights problem for me. Where can I start? The same place you can always start. Google. Google for your exact error message. But to help explain a bit hopefully... - nginx runs as user www-data group www-data - weewx in a pip installation is running as your user and group - your $HOME likely does not permit the nginx process user to read down to your public_html tree You have at least two options.... - open up your $HOME permissions to let the world read down to your public_html tree (security risk!) - or configure weewx to write to the /var/www tree that nginx permit (safer for security reasons) I did mine this way on a pi: - sudo mkdir /var/www/html/weewx - sudo chown pi:pi /var/www/html/weewx #### <=== use your user:group here - ln -s /var/www/html/weewx /home/pi/weewx-data/public_html #### <=== use your username here The reason I do it this way is that I do not need to edit anything in nginx sites-enabled or even in weewx.conf. I just make a directory and set its permissions and create one symlink in $HOME before starting weewx and it all works. Simpler for me to follow. -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/18da0f25-1d77-46b7-9cdf-c2e9365e6a8an%40googlegroups.com.
