Thank you Ben.

On Tue, Aug 2, 2022, 3:20 PM Ben Hohman <[email protected]> wrote:

> The default install of nginx has a link from sites-enabled
> :/etc/nginx/sites-enabled $ ll
> total 8
> drwxr-xr-x 2 root root 4096 Aug  1 14:59 ./
> drwxr-xr-x 8 root root 4096 Aug  1 15:01 ../
> lrwxrwxrwx 1 root root   34 Aug  1 14:59 default ->
> /etc/nginx/sites-available/default
>
> What you want in default is the lines in yellow, assuming you want to use
> root for something else and have your weather pages in a subfolder.
>
> server {
>         listen 80 default_server;
>         listen [::]:80 default_server;
>
>         root /var/www/html;
>
>         index index.html index.htm index.nginx-debian.html;
>
>         server_name _;
>
>         location / {
>                 # First attempt to serve request as file, then
>                 # as directory, then fall back to displaying a 404.
>                 try_files $uri $uri/ =404;
>         }
>
>         location /weewx {
>         alias /home/weewx/public_html;
>   }
> }
>
> On Monday, August 1, 2022 at 4:41:32 PM UTC-7 [email protected] wrote:
>
>> Thank You Vince I will use the symlink
>>
>> On Fri, Jul 29, 2022, 11:49 AM [email protected] <
>> [email protected]> wrote:
>>
>>> Adding the web server states to add the following under the Nginx server
>>> :
>>>   server {
>>>        ...
>>>       location /weewx {
>>>           alias /home/weewx/public_html;
>>>        }
>>>  }
>>> This is to be added in /etc/nginx/sites-enabled
>>> May this be placed anywhere in the file or should it be at the end of
>>> the file?
>>>
>>> Is there no changing of the root path from the the original to the
>>> setup.py install of /home/weewx/public_html     or is that unnecessary?
>>>
>>> Are there any other changes to be made in order to get access to the
>>> Raspberry Pi from without the local network to see the weewx page?
>>> If I can be pointed in the right direction it would be appreciated.
>>> thank you
>>>
>>> --
>>> 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/57fe10d7-414a-4f9a-a76c-59e77293bb6en%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/57fe10d7-414a-4f9a-a76c-59e77293bb6en%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/e87a93db-2391-4e73-bedb-58c0d39a1e29n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/e87a93db-2391-4e73-bedb-58c0d39a1e29n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAGW8XMRBv60%3DYJSYK%2Bnqor_CMj%3DSDfZJFBm09j8BXkUNEpEOZw%40mail.gmail.com.

Reply via email to