Answer the question
In order to leave comments, you need to log in
How to redirect all incoming http and https traffic to local web server?
Condition: there is a wifi router connected to the gateway on Debian. The router forwards all packets to the gateway.
Task: redirect all incoming http and https traffic of the gateway to a web server running on the same gateway.
It would seem that it could be more trivial. There is no problem with the http redirect. But https refuses to redirect no matter what I do.
Answer the question
In order to leave comments, you need to log in
Here the problem is most likely not in the rule, which is like this:
Here, the problem is probably that on your web server, where the redirect goes, HTTPS must be enabled and configured.
> But https refuses to redirect no matter what I do.
That's what it was made for, after all.
In any case, browsers will swear at an invalid certificate (well, provided that you don’t put your own CA on each client with your hands).
Better not suffer heresy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question