On 2019-04-19 06:11, Mathew Perry wrote:
one step further. I now can access the web interface partly.
difficult to describe. everything is top down scrollable, over 3 pages
downwards. no css or so formating.

-------------------------

FROM: Michael Stowe <michael.st...@member.mensa.org>
SENT: Friday, April 19, 2019 5:25 AM
TO: General list for user discussion, questions and support
CC: Mathew Perry
SUBJECT: Re: [BackupPC-users] Fwd: Re: backuppc behind nginx which is
on another host

On 2019-04-19 02:41, Mathew Perry wrote:

…and just for the record.... switched backend to https at the very
moment:

Outcome: The Requested URL /BackupPC_Admin was not found on this

server

-------------------------

FROM: Mathew Perry <mamema2...@hotmail.com> SENT: Friday, April 19,
2019 1:25 AM TO: General list for user discussion, questions and
support SUBJECT: Re: [BackupPC-users] Fwd: Re: backuppc behind nginx
which is on another host

404 NOT FOUND

I know you're trying to help, which is very nice, but be advised
that

over this nginx server about 20 services are running and working.
backends behind nginx are both http or https. As for example chrome
is using HSTS, the domain runs https for a long time.

I don't think that i need to change a whole working and running
nginx

conf on higher level than on the backuppc directive.

-------------------------

FROM: Michael Stowe <michael.st...@member.mensa.org> SENT: Thursday,
April 18, 2019 7:39 AM TO: General list for user discussion,
questions and support CC: Mathew Perry SUBJECT: Re: [BackupPC-users]
Fwd: Re: backuppc behind nginx which is on another host

On 2019-04-18 01:40, Mathew Perry wrote:

hmmm… no!

The Requested URL /BackupPC_Admin was not found on this server

FYI: the url which “comes back” from nginx looks like:

https://u2182357.ct.sendgrid.net/wf/click?upn=rBK8reUlX8Sxr7Iz1fV-2F7T8nrzTGGnwx9UNS1WVjQxnVSBGmhdBbJoi5j5f7UDEJ_OypFYCWzG5ApGW-2FFpGTxc4RCS9eud0Dl1htN5rYoUZ8To4zeNUFBkAGI3hzer91CtHqx5ajFKrIeEAMj67C-2FkYZTfB4c6svpzlmD5aShbi8PRTCt9qZsUXkwXQk48NyHdZiYE5NgidiQjbuMjy-2FMSxNopfjI6SR6MgSrVA8ZTmmsCBE-2FHu4CyKwJUXvjLeATdd05cYm-2Fe4Ui49nzO9OQHSHaNdNmWqNdNu-2Ftv4jhlh813W0Lg0ntRiFnigIfw6bs
 [1] [1]

nginx testet internally (LAN) and externally. Same result

And what happens when you navigate to
https://u2182357.ct.sendgrid.net/wf/click?upn=gHC-2FQ4aFf0eQjtLJSQQ-2BdZtT-2B1GrVoFn98d8hTvP5qh8-2FeTY2bBOm6Nhq8PRhzM1JS12fyMe1gWKiZkCKxHdYg-3D-3D_OypFYCWzG5ApGW-2FFpGTxc4RCS9eud0Dl1htN5rYoUZ8To4zeNUFBkAGI3hzer91CtHqx5ajFKrIeEAMj67C-2FkYzYtahxwXHsQCgpCInZBJ8OmEWNAriW0H3iFXN4DKYg0-2Bkz3AWdChNzU5qjNgYnWjcdHqfPJGzE67P3IYbavJ-2BbLPQtyWo1rgLFGdt-2FuvWFTRu1rzLHaem0-2F5YdXFb97EjYJKbeCGSSljpXj-2FsN712g-2BHSKbaUYqajfqTrRqrbr
 [2] [1]

Also, have you actually set up the back end for https?

To clarify: I don't think it's an http/https problem, but it's worth
ensuring that you're matching what works on the host side.

At any rate, have you tried:

location /BackupPC_Admin {

proxy_pass 
https://u2182357.ct.sendgrid.net/wf/click?upn=OIcehkuoae0CzVKCEzanymOLCu-2BVSO75-2FnYwJXg-2FV4e-2B28ucf3rSWzrrbMJduJe-2F_OypFYCWzG5ApGW-2FFpGTxc4RCS9eud0Dl1htN5rYoUZ8To4zeNUFBkAGI3hzer91CtHqx5ajFKrIeEAMj67C-2FkbdmzmsxJIXCKDZPIEFsi7XhcRK1qs7-2FyaMSbiB8OB7nwDVKL5zYN8CarktZhKqVmGwVlAd557-2FpdTHnpHHHY2mkajjeLDkq5vsWQTCKI0DVz6Lai1kpbvN-2BFn1UinWGMDedawwF26pgxcKN9jVapOIPlIuiguI4vmhiAfOSTsXY
 [3]; }

That's good -- so we know that proxying itself is working, but there's something goofy going on in the redirect/rewrite. (Yes, it sounds like where we started.)

At any rate, two things worth bringing up:

1) Have you tried scgi_pass instead? It removes one step between nginx and BackupPC. I don't know that it will solve your problem, but at least it's worth being aware that you don't actually need an http server on the back end.

2) I don't know why the default proxy_redirect wouldn't be behaving itself, but it clearly isn't. You may just want to make this explicit:

proxy_redirect off
proxy_redirect default
proxy_redirect 
https://u2182357.ct.sendgrid.net/wf/click?upn=YahQ8tVjTExAt0gOS-2Bui2HSH9NT15auMwLJik22QXzw-3D_OypFYCWzG5ApGW-2FFpGTxc4RCS9eud0Dl1htN5rYoUZ8To4zeNUFBkAGI3hzer91CtHqx5ajFKrIeEAMj67C-2FkUG7NmDKMSEU7PilrxT3OH65Vshj3AhW5ePICO-2FDzpfkLPaDmNLNDkhqAW3HrUEQl7JrbLx02LOU1Tu01GGzWqUimqovmDR4VRCIoqHBotal-2FozNYvwNekmtSa8a5aly25VOr4dlXIwqNLp20MzngzOFsn89o9XLqVCOhM0ajfWy
 
https://u2182357.ct.sendgrid.net/wf/click?upn=qCUd6WcJ5OOirVHNEJOdx3XSC1QOgTCDRYnVJypQwOOMQMWSeLTfhLAVAPhpR1-2Fj_OypFYCWzG5ApGW-2FFpGTxc4RCS9eud0Dl1htN5rYoUZ8To4zeNUFBkAGI3hzer91CtHqx5ajFKrIeEAMj67C-2FkRNTVIOldWA4lG4lSUjuccGDrEgvZ-2F9pCQFtQNDubBQLcGsfBRVjfsXb5R-2F3gmju7yJGutjlKh95SN0TSeIDmA3aOrAWfRoGXeaJaOUlP7XoJ93RPwRDnsWw8QBeUwTwQODlnKiLPuZKbWyG4P2KpqSO5ihDdxYs9w1qVT487BT-2B

(Order is important, of course, and the point of off and default is to rule out global rules which are taking precedence.)
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to