Hi Jerry,

As the root user.
copy that file into /etc/apache2/conf-available, so that you now have it as
/etc/apache2/conf-available/weewx.conf

then run the command...
 a2enconf weewx.conf

and you should see a message saying...
Enabling conf weewx.
To activate the new configuration, you need to run:
  service apache2 reload

Do that (reload apache)  and it should hopefully be working for you.





Cheers
 Glenn

rorpi - read only raspberry pi + weewx: now with scripts
<https://github.com/glennmckechnie/rorpi-raspberrypi>

On 16 January 2017 at 06:53, Jerry Simonowits <[email protected]>
wrote:

> Hi all,
>
> For those who may not remember, I’m a ham radio operator and we’re
> planning on putting up a weather station on a local tower and integrate it
> with our AREDN Mesh network for use bye emergency services
> (local/county/state).
>
> Well, I’ve made some progress (Interrupted by a family item, so took a
> break).
>
> I installed all the other items I needed (such as an Apache Server) and
> then followed the directions here:
>
> weewx: Installation using setup.py
>
> I had a successful install and have things setup so that both Apache and
> weewx startup automatically on my Raspberry Pi upon restart.
>
> When I check with : file:///home/weewx/public_html/index.html it looks
> great, so this is good progress.
>
> I followed these instructions to integrate with Apache:
>
>
>    -
>
>    If weewx was installed using setup.py, you must tell Apache where to
>    find the weewx reports. One method is to install an Apache
>    configuration snippet:
>
>    sudo cp util/apache/conf.d/weewx.conf /etc/apache2/conf.d
>
>    Be sure that the path in the Apache configuration snippet matches the
>    HTML_ROOT defined in the weewx configuration file. For example, the
>    path for a default setup.py installation would look like this:
>
>    Alias /weewx /home/weewx/public_html
>    <Directory /home/weewx/public_html>
>        Options FollowSymlinks
>        AllowOverride None
>    </Directory>
>
>    Restart Apache to make the changes happen:
>
>    sudo /etc/init.d/apache2 restart
>
>
> The conf.d file was created (it wasn’t there before) and it had the right
> root and so on in the file. I restarted Apache, and even restarted the Pi,
> but I’m getting a 404 when I try and access using the URL of
> http://localhost/weewx
>
> When I try http://localhost/home/weewx/public_html/index.html I also get
> a 404 with an error message from Apache saying “The requested URL
> /home/weewx/public)html/index.html was not found on this server
>
> Any suggestions ?
>
> Jerry KB2GCG
>
> Gerald (Jerry) Simonowits CISM, CISSP, CRISC
>
> --
> 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].
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to