Which IIS 7 ISAPI Filter can help me doing that :
http://site1.domain1.com:80 ==> Internal IIS Server 1 (HTTP, TCP 80)
https://site2.domain1.com:443 ==> Internal IIS Server 1 (HTTPS, TCP 443)
http://site1.domain2.com:80 ==> Internal IIS Server 2 (HTTP, TCP 80)
http://site2.domain2.com:443 ==> Internal IIS Server 2 (HTTPS, TCP 443)
http://site1.domain3.com:80 ==> Internal IIS Server 2 (HTTP, TCP 8080)
http://site2.domain3.com:443 ==> Internal IIS Server 2 (HTTPS, TCP 8443)
You can create a Reverse Proxy with IIS 7 using the URL Rewrite Module 2 and the Application Request Routing Module (ARR).
I didn't try it myself but the following link should be able to solve your problem:
Reverse Proxy with URL Rewrite v2 and Application Request Routing
Related
Is it possible to configure NGINX to forward requests to different upstream ports depending on the request protocol?
This is what I need:
HTTPS: https://gateway:443/* -> proxy pass -> https://upstream:443/*
WSS: wss://gateway:443/* -> proxy pass -> wss://upstream:1000/*
The wss should delegate the Websocket protocol HTTP upgrade to the upstream server.
Client A -> Nginx Server B -> Back-End Server C
Back-End Server C needs real IP of Client A.
How to do to solve this?
Can I just config Nginx Server B to solve it?
I find some way on nginx.com.
See:
9:43 Passing the Client’s IP Address to the Backend
IP Transparency and Direct Server Return with NGINX
Proxy Protocol
I have apache server(Frontend code) running on 80 port with https secure(SSL is configured). Backend server is nodejs and it is configured on 3000 port. When I tried to call services from https to http i.e. Apache(port 80 ssl configured) to Nodejs (port 3000 non-ssl) it is giving showing failed with status as "net::ERR_SSL_PROTOCOL_ERROR".
This may have something to do with Same Origin policy.
Please see that answer: HTTP Ajax Request via HTTPS Page.
My current configuration is like this :
1. Nginx listening on Port 8080 and 443
2. Varnish listening to port 80
Currently, when requests are made through HTTP they are delivered through the varnish, but when requests are made through HTTPS varnish doesn't deliver them.
My goal is to put varnish between Client and Nginx web server ( or make varnish work with port 443 )
Reading through articles and answer on StackOverflow, I tried to setup reverse proxy 443 to 80 ( or 8080 maybe ?)
I followed these article(s) :
https://www.smashingmagazine.com/2015/09/https-everywhere-with-nginx-varnish-apache/
https://serverfault.com/questions/835887/redirect-http-to-https-using-varnish-4-1
Problem is that when I try to set these up, I get 502 bad request error, and sometimes the default Nginx page.
PS: I'm trying to set this up using virtual server block, not default server.
PS2: I also need to deliver the final web page through HTTPS weather the request made through HTTP or HTTPS ( but I get too many redirects error )
PS3: I'm using Cloudflare
The basic concept is to sandwich varnish between an entity handling SSL and a back-end server working on port 8080 or whatever you choose.
Here's the traffic flow:
user 443 > front-end proxy for SSL offloading 443 > Varnish 80 > nginx 8080.
Now your options for Front end proxy are:
1.A Load balancer supporting SSL termination / offloading.
2.Nginx or apache working as a proxy to receive traffic on 443 and forward that on port 80 to Varnish.
Error 502 means your Varnish is having issues connecting your backend, please check varnish.vcl
I have two server
Server A: iis server
Server B: weblogic app server
iis accept the request (with http and https)
and forward the request to weblogic app server as http (using iis weblogic proxy)
what i try to do is to force iis to accept only https so when iis accept http request iis will repsonse to client with redirect to https (302 ststus)
how can i do it?
(i try to avoid do it in weblogic app server)
i found the solution by using - url-rewrite.
url-rewrite is iis extension (iis 7.x and higher) it's let you do some action on requset (like redirect and more) by request filter (url pattern and more).
url-rewrite extension
iis http to https page
iis http to https video