Is it possible to redirect traffic sent to https://ip to http://ip?Are the PUT, DELETE, HEAD, etc methods available in most web browsers?Are HTTPS URLs encrypted?HTTP GET with request bodyHTTP status code for update and delete?How to use java.net.URLConnection to fire and handle HTTP requestsCustom HTTP headers : naming conventionssimple HTTP server in Java using only Java SE APIEnabling HTTPS on express.jsHAProxy redirecting http to https (ssl)How are parameters sent in an HTTP POST request?
Does Hubble need to dump momentum of its reaction wheels?
Finding closed forms for various addition laws on elliptic curves, FullSimplify fails even with assumptions?
C-152 carb heat on before landing in hot weather?
Why do some games show lights shine through walls?
Correct spacing in the alignat*-environment
How can Charles Proxy change settings without admin rights after first time?
Pull-up sequence accumulator counter
Should I include salary information on my CV?
Syntax Error with 'if'
Does ultrasonic bath cleaning damage laboratory volumetric glassware calibration?
Are there any vegetarian astronauts?
Fedora boot screen shows both Fedora logo and Lenovo logo. Why and How?
Can a US president have someone sent to prison?
Why is C++ initial allocation so much larger than C's?
Why does the A-4 Skyhawk sit nose-up when on ground?
In the Marvel universe, can a human have a baby with any non-human?
Should I hide continue button until tasks are completed?
Does squid ink pasta bleed?
Layout of complex table
Does the UK have a written constitution?
Declining an offer to present a poster instead of a paper
Bash echo $-1 prints hb1. Why?
Does the Paladin's Aura of Protection affect only either her or ONE ally in range?
Going to get married soon, should I do it on Dec 31 or Jan 1?
Is it possible to redirect traffic sent to https://ip to http://ip?
Are the PUT, DELETE, HEAD, etc methods available in most web browsers?Are HTTPS URLs encrypted?HTTP GET with request bodyHTTP status code for update and delete?How to use java.net.URLConnection to fire and handle HTTP requestsCustom HTTP headers : naming conventionssimple HTTP server in Java using only Java SE APIEnabling HTTPS on express.jsHAProxy redirecting http to https (ssl)How are parameters sent in an HTTP POST request?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I've seen a lot of solution for redirecting a webserver, but I have a Ubuntu server that is running an application, not over a url. I'd like to redirect requests from https://ip to http://ip, without setting up a domain for this server.
I want the response from http://ip to be returned when https://ip is queried.
I've tried using iptables to redirect traffic from port 443 to 80, but this did not work as requests to https://ip could not get a response.
I also tried using firewall-cmd to allow traffic on port 443, but this did not work either.
Any help on this issue would be greatly appreciated!
http ubuntu https server ubuntu-16.04
add a comment |
I've seen a lot of solution for redirecting a webserver, but I have a Ubuntu server that is running an application, not over a url. I'd like to redirect requests from https://ip to http://ip, without setting up a domain for this server.
I want the response from http://ip to be returned when https://ip is queried.
I've tried using iptables to redirect traffic from port 443 to 80, but this did not work as requests to https://ip could not get a response.
I also tried using firewall-cmd to allow traffic on port 443, but this did not work either.
Any help on this issue would be greatly appreciated!
http ubuntu https server ubuntu-16.04
add a comment |
I've seen a lot of solution for redirecting a webserver, but I have a Ubuntu server that is running an application, not over a url. I'd like to redirect requests from https://ip to http://ip, without setting up a domain for this server.
I want the response from http://ip to be returned when https://ip is queried.
I've tried using iptables to redirect traffic from port 443 to 80, but this did not work as requests to https://ip could not get a response.
I also tried using firewall-cmd to allow traffic on port 443, but this did not work either.
Any help on this issue would be greatly appreciated!
http ubuntu https server ubuntu-16.04
I've seen a lot of solution for redirecting a webserver, but I have a Ubuntu server that is running an application, not over a url. I'd like to redirect requests from https://ip to http://ip, without setting up a domain for this server.
I want the response from http://ip to be returned when https://ip is queried.
I've tried using iptables to redirect traffic from port 443 to 80, but this did not work as requests to https://ip could not get a response.
I also tried using firewall-cmd to allow traffic on port 443, but this did not work either.
Any help on this issue would be greatly appreciated!
http ubuntu https server ubuntu-16.04
http ubuntu https server ubuntu-16.04
asked Mar 25 at 11:16
fuzzifuzzi
3341 gold badge11 silver badges37 bronze badges
3341 gold badge11 silver badges37 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
By changing the port from 443 to 80, traffic doesn't magically change from HTTP to HTTPS. You can see the port number as a house number and the protocol as a secret knock to get in.
You need to have a service running (who knows the secret knock) on port (house number) 80, which understands the HTTPS protocol (the secret knock).
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336578%2fis-it-possible-to-redirect-traffic-sent-to-https-ip-to-http-ip%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
By changing the port from 443 to 80, traffic doesn't magically change from HTTP to HTTPS. You can see the port number as a house number and the protocol as a secret knock to get in.
You need to have a service running (who knows the secret knock) on port (house number) 80, which understands the HTTPS protocol (the secret knock).
add a comment |
By changing the port from 443 to 80, traffic doesn't magically change from HTTP to HTTPS. You can see the port number as a house number and the protocol as a secret knock to get in.
You need to have a service running (who knows the secret knock) on port (house number) 80, which understands the HTTPS protocol (the secret knock).
add a comment |
By changing the port from 443 to 80, traffic doesn't magically change from HTTP to HTTPS. You can see the port number as a house number and the protocol as a secret knock to get in.
You need to have a service running (who knows the secret knock) on port (house number) 80, which understands the HTTPS protocol (the secret knock).
By changing the port from 443 to 80, traffic doesn't magically change from HTTP to HTTPS. You can see the port number as a house number and the protocol as a secret knock to get in.
You need to have a service running (who knows the secret knock) on port (house number) 80, which understands the HTTPS protocol (the secret knock).
answered Mar 25 at 12:02
pointerdkpointerdk
63 bronze badges
63 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55336578%2fis-it-possible-to-redirect-traffic-sent-to-https-ip-to-http-ip%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown