Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
sometime on my apache server http changes to https in some pages ! in this situation redirection does not work !and https page wont load !
how can i fix that !!
or is there any way to forward port to a ip address ??
for example : any request to port 8001 redirect to a ip address ???
Well, looks like your HTTP code is doing the switching to https. So either add extra rules to your iptables to accommodate for that (e.g. use port 8443), or tell your HTTP code not to make the switch to https.
Also you can try disabling https support in your webserver; but then again, I'm not sure if you need this for something else.
As for forwarding everything to a single IP-address, that can be done, but that will open every port on that server to the outside world. From a security point of view, that really something you don't want.
thx man but it does not help me because switching http to https on my web server is automatically !! and users want to use a port to access to web server !!!
is there any idea ????
is there any way to add a rule to iptables to work interactively !! if web server switches to https iptables work fine and route all traffic to source port (8001) ????
Quote:
Originally Posted by lpwevers
Well, looks like your HTTP code is doing the switching to https. So either add extra rules to your iptables to accommodate for that (e.g. use port 8443), or tell your HTTP code not to make the switch to https.
Also you can try disabling https support in your webserver; but then again, I'm not sure if you need this for something else.
As for forwarding everything to a single IP-address, that can be done, but that will open every port on that server to the outside world. From a security point of view, that really something you don't want.
Otherwise I'm afraid you're out of luck there. You could of course try disabling https support in your webserver. That at least will prevent it from switching to https.
Otherwise I'm afraid you're out of luck there. You could of course try disabling https support in your webserver. That at least will prevent it from switching to https.
thx man but thas is not help me !! i need a solution when a user connect to valid ip port 8001 requests forward to webserver on 172.16.11.2 an even http changes to https pages load for user which connected to port 8001 !!!
thx man but thas is not help me !! i need a solution when a user connect to valid ip port 8001 requests forward to webserver on 172.16.11.2 an even http changes to https pages load for user which connected to port 8001 !!!
is there any idea ???no one ??
Well good luck with that. I may be really wrong, but I do believe what you want is to have an 1 to n port forwarding. Where iptables decides, based on the type of traffic, to which port of your webserver it should forward. Far as I know that's just not possible in any way.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.