it's not that easy 🙂
with this directive:
location /backuppc/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $http_host;
proxy_max_temp_file_size 0;
proxy_pass http://ipaddress:port/;
proxy_redirect http:// https://;
proxy_redirect off;
}
leads to:
"The Requested URL /BackupPC_Admin was not found on this server"
i wouldn't ask here if only a proxy pass is needed....
________________________________
From: Johan Ehnberg <[email protected]>
Sent: Monday, April 15, 2019 10:08 AM
To: [email protected]
Subject: [BackupPC-users] Fwd: Re: backuppc behind nginx which is on another
host
I accidentally sent my reply just to Matthew. Here is a copy for future
reference.
-------- Forwarded Message --------
Subject: Re: [BackupPC-users] backuppc behind nginx which is on another
host
Date: Mon, 15 Apr 2019 12:25:51 +0300
From: Johan Ehnberg <[email protected]><mailto:[email protected]>
To: Mathew Perry <[email protected]><mailto:[email protected]>
Hi Matthew,
I would recommend using the nginx server as a reverse proxy.
So, set up the backuppc server normally (i.e. with its own web server), and on
nginx, use something like the following if you will connect remotely over TLS
and Let's Encrypt certificate:
server {
listen 80;
server_name backuppc.example.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name backuppc.example.com;
ssl_prefer_server_ciphers on;
ssl_ciphers
EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_certificate /etc/letsencrypt/live/backuppc.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/backuppc.example.com/privkey.pem;
ssl_session_cache shared:SSL:5m;
ssl_session_timeout 1h;
add_header Strict-Transport-Security max-age=15768000 always;
location / {
include /etc/nginx/proxy_params;
proxy_pass http://10.0.0.2:80;
}
}
Change domains and IP to taste.
Best regards,
Johan Ehnberg
On 4/15/19 11:19 AM, Mathew Perry wrote:
Hi
i'm using latest backuppc and want to connect emotely to it. I have nginx on
another host, not on same host where backuppc is running on.
So, i'm struggling to get the nginx config working to connect to the backuppc
host. The configs on the internet are all for nginx configs if backuppc and
nginx are on the same host.
_______________________________________________
BackupPC-users mailing list
[email protected]<mailto:[email protected]>
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
--
Johan Ehnberg
Founder, CEO
Molnix Oy
[email protected]<mailto:[email protected]>
+358 50 320 96 88
molnix.com<https://molnix.com>
[cid:[email protected]]
The contents of this e-mail and its attachments are for the use of the intended
recipient only, and are confidential and may contain legally privileged
information. If you are not the intended recipient or have otherwise received
the e-mail in error, please notify the sender by replying to this e-mail
immediately and then delete it immediately from your system. Any dissemination,
distribution, copying or use of this communication without prior and explicit
permission of the sender is strictly prohibited.
Please consider the environment - do not print this e-mail unless you really
need to.
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/