I am not an apache expert either, but from what I can tell, the problem is that the weewx Debian installs sets HTML_ROOT incorrectly. It's being set to /var/www, when it should be /var/www/html.
Because of this, the HTML files are being put in a directory that is not accessible to the Apache server, at least not without modifying its configuration file. Try going into /etc/weewx/weewx.conf and changing the lines # Where the generated reports should go, relative to WEEWX_ROOT HTML_ROOT = /var/www/weewx to # Where the generated reports should go, relative to WEEWX_ROOT HTML_ROOT = /var/www/weewx/html then restart weewx. If my diagnosis is correct, I'm amazed that this problem has been sitting here all this time. Perhaps Apache changed the default DocumentRoot recently? -tk On Wed, Jul 27, 2016 at 12:00 PM, Vlad Rafeev <vla...@gmail.com> wrote: > Vince, thank you for clearing this out. I think your great explanation > deserves to be included in the documentation. Right now it feels like > everything should work out of the box, which is clearly not the case. > > > --- > Влад Рафеев > http://dandaka.com/ > > On Wed, Jul 27, 2016 at 7:13 PM, vince <vinceska...@gmail.com> wrote: > >> The alternate solution is for you to edit weewx.conf to have it save its >> files in the place the webserver expects things. >> >> The underlying issues are: >> >> - there are lots of webservers to pick from, they pick different >> locations for document root >> - operating systems differ in where they set the webserver document >> root >> - 'versions' of a particular operating system also can change where >> they set this >> >> So weewx can't possibly keep track of this, there are too many >> ever-changing upstream providers of software. >> >> >> The user/admin 'must' have enough knowledge to know how to get the files >> weewx generates into >> >> the place 'they' want them to appear when viewed from a web browser. >> There is no one-true-answer. >> >> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "weewx-user" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/weewx-user/kzXjvLjWI-k/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> weewx-user+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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. > For more options, visit https://groups.google.com/d/optout. > -- 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. For more options, visit https://groups.google.com/d/optout.