> Hi there,
>
> On Mon, 25 Nov 2024, Divan Santana wrote:
>
>> ...
>>> ...
>>> 2) Second issue I see, is that if I modify /etc/backuppc/config.pl the
>>>    changes DO take effect, but if I edit /etc/backuppc/swift.pl the
>>>    changes do not get read ever.  The permissions are the file look
>>>    correct.  The /etc/backuppc/hosts file looks correct to me too.
>>>
>>>    How else could I try debug this further?
>>
>> This issue still remains though.  Very odd.  Anyone know why it wouldn't
>> read the hosts .pl file?  Or how I could debug this?
>
> Is it as simple as putting swift.pl in the /pc/ directory?
>
> /etc/backuppc/pc/
>
> instead of
>
> /etc/backuppc/
>
> At one time I had an idea that at least in their packages, Debian was
> soft-linking /etc/backuppc/pc to /etc/backuppc/, which might have had
> the desired effect in your setup but which isn't done upstream.

You are a legend, thanks - I owe you.

It really was that simple.  haha.  I should better read upstream docs.
I was used to the Debian way. 

Everything is working perfectly now EXCEPT for some web rendering
issues.

Anyone have an idea how to correctly setup nginx here?

the static web content on openbsd is at:

root@node1:backuppc# ls /var/www/backuppc/
0000000.gif            0011000.gif            1001100.gif            
1100100.gif            1101100.gif            1110001.gif            
1111000.gif            1111111.gif            icon-file.png
0000011.gif            0011001.gif            1010000.gif            
1100101.gif            1101101.gif            1110100.gif            
1111001.gif            BackupPC_stnd.css      icon-hardlink.png
0001000.gif            1000000.gif            1010001.gif            
1100110.gif            1101110.gif            1110101.gif            
1111100.gif            BackupPC_stnd_orig.css icon-symlink.png
0010000.gif            1000100.gif            1011000.gif            
1100111.gif            1101111.gif            1110110.gif            
1111101.gif            favicon.ico            logo.gif
0010001.gif            1001000.gif            1100000.gif            
1101000.gif            1110000.gif            1110111.gif            
1111110.gif            icon-dir.png           sorttable.js

The www is chrooted at /var/www I think.

I have an nginx config like so:

```
    server {
        listen       8888;
        listen       [::]:8888;
        server_name  node1.example.com;
        root         /var/www/backuppc/;

        location /backuppc/ {
            auth_basic "BackupPC";
            auth_basic_user_file backuppc.users;

            fastcgi_pass   127.0.0.1:1028;
            fastcgi_split_path_info ^(/cgi-bin/[^/]+)(.*);
            fastcgi_param REMOTE_USER $remote_user;
            fastcgi_param SCRIPT_NAME $document_uri;
            include   fastcgi_params;
        }
```

The css and the icons don't render right.

I'm guessing I need to split the static content and the cgi part?

I see 200 in the nginx logs, but no pictures or css is rendering.

192.168.77.6 - backuppc [25/Nov/2024:16:51:21 +0200] "GET /backuppc/ HTTP/1.1" 
200 4172 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/128.0.0.0 Safari/537.36"
192.168.77.6 - backuppc [25/Nov/2024:16:51:22 +0200] "GET 
/backuppc/BackupPC_stnd.css HTTP/1.1" 200 4359 
"http://192.168.77.113:8888/backuppc/"; "Mozilla/5.0 (X11; Linux x86_64) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
192.168.77.6 - backuppc [25/Nov/2024:16:51:22 +0200] "GET 
/backuppc/sorttable.js HTTP/1.1" 200 4309 
"http://192.168.77.113:8888/backuppc/"; "Mozilla/5.0 (X11; Linux x86_64) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
192.168.77.6 - backuppc [25/Nov/2024:16:51:22 +0200] "GET /backuppc/logo.gif 
HTTP/1.1" 200 4265 "http://192.168.77.113:8888/backuppc/"; "Mozilla/5.0 (X11; 
Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 
Safari/537.36"


_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to