Hi Vince, Lang, I put the two commands in above to create a symbolic link redirecting the Apache default web folder and allow access to the report folder. checked the conf file which has the correct html root.
Restarted Apache2. Page says 403 Forbidden: You don't have permission to access this resource. Apache/2.4.51 (Raspbian) Server at localhost Port 80 Whereas file:///var/weewx/reports/index.html works. Any further ideas? Thakns, Sam. On Thursday, November 18, 2021 at 5:50:49 PM UTC vince wrote: > This one is in the FAQ - (link) > <https://github.com/weewx/weewx/wiki/faq-web-pages-not-appearing> which > points you to the wiki (link) > <https://github.com/weewx/weewx/wiki/Configure-a-web-server-(Apache,-NGINX-or-lighttpd)> > > On Thursday, November 18, 2021 at 1:42:04 AM UTC-8 [email protected] > wrote: > >> Did you create a symbolic link redirecting the Apache default web folder >> to yours ? >> And did you allow Apache to access your report folder ? >> >> 1. Create symbolic link to point webserver to the reports >> 1. *sudo ln -s /var/weewx/reports /var/www/html/weewx* >> 2. Give the web server the ability to read from the directory >> 1. *sudo chmod -R 755 /var/www/html/weewx* >> >> Did you define the HTML_ROOT for your reports properly in weewx.conf in >> the [StdReport] section ? >> *HTML_ROOT = /var/weewx/reports* >> >> >> On 18.11.2021 10:34, Samuel Kirby-Bray wrote: >> >> Hello, >> >> Just installed weewx 4.5.1 on Rpi with bullseye and working fine - I can >> see the reports. I installed Apache web-server following the instructions >> and can now see its landing page. However the reports don't seem to be >> saving to the correct folder: file:///var/weewx/reports/index.html. >> Whereas the apache index page is here: /var/www/html >> >> I can link the reports on the browser but would like to setup the website >> for external viewing. Its worked fine before, so not sure what i'm doing >> wrong. Do I need to configure something in the config file to sort this? >> Apologies for the novice Q! >> >> Any ideas? >> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/1157f3cb-05af-4200-b57c-75ed0bd78c64n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/1157f3cb-05af-4200-b57c-75ed0bd78c64n%40googlegroups.com?utm_medium=email&utm_source=footer>.s >> >> ? >> >> >> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/2e1bc97e-42c4-4ffd-9bdb-76b6ce2f2e04n%40googlegroups.com.
