Welcome! Log In Create A New Profile

Advanced

Re: Redirect request based on source $scheme !!

November 11, 2015 06:02AM
One point is worth mentioning, we don't own ad.domain.com its a 3rd party
website. All we can control is ourdomain.com.

On Wed, Nov 11, 2015 at 3:25 PM, shahzaib shahzaib <shahzaib.cb@gmail.com>
wrote:

> >>you can create separate server blocks for each domain
> I think issue will still persist. Say https://ad.domain.com makes static
> call to http://ourdomain.com , it'll end up with conflicted scheme i.e
> https -> http. We can't force http to https as well because it'll break
> static calls from http -> http.
>
> Actually we've video sharing website from where people embed http/https
> links to there websites. Now the problem is, some of the HTTPS websites
> have embedded HTTP URL links from our website instead of HTTPS due to which
> the code is unable to execute on their HTTPS website because it is making
> call from https -> http which is wrong. The number of these malformed links
> are huge and there's no way that those users can manually correct
> the embedded links by editing http to https and vice versa).
>
> So we're thinking to have some condition in place that if the request for
> HTTP embedded link comes from any HTTPS domain , nginx will detect that
> source $scheme and redirect that request to HTTPS.
>
> On Wed, Nov 11, 2015 at 3:10 PM, Avraham Serour <tovmeod@gmail.com> wrote:
>
>> you can create separate server blocks for each domain
>>
>> On Wed, Nov 11, 2015 at 11:36 AM, shahzaib shahzaib <
>> shahzaib.cb@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Is there a way we can serve $scheme (HTTP/HTTPS) based on source
>>> request ? Such as :
>>>
>>> if https://ad.domain.com --> sends request to http://ourdomain.com (as
>>> it'll fail due to cross $scheme conflict)
>>>
>>> So http://ourdomain.com will check that the request invoked using https
>>> $scheme and it'll redirect http://ourdomain.com to https://ourdomain.com
>>> for that particular ad.domain.com.
>>>
>>> ---------------------------------------------------------
>>>
>>> Is that possible guys ?
>>>
>>> Thanks in Advance !
>>>
>>> Regards.
>>> Shahzaib
>>>
>>>
>>> Need to send me private email? I use Virtru
>>> https://www.virtru.com/how-it-works/?utm_medium=Email&utm_source=Plugin%20Users&utm_campaign=Footer.
>>>
>>>
>>> _______________________________________________
>>> nginx mailing list
>>> nginx@nginx.org
>>> http://mailman.nginx.org/mailman/listinfo/nginx
>>>
>>
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Redirect request based on source $scheme !!

shahzaib1232 November 11, 2015 04:38AM

Re: Redirect request based on source $scheme !!

Avraham Serour November 11, 2015 05:12AM

Re: Redirect request based on source $scheme !!

shahzaib1232 November 11, 2015 05:26AM

Re: Redirect request based on source $scheme !!

shahzaib1232 November 11, 2015 06:02AM

Re: Redirect request based on source $scheme !!

Avraham Serour November 11, 2015 06:04AM

Re: Redirect request based on source $scheme !!

shahzaib1232 November 11, 2015 06:22AM

Re: Redirect request based on source $scheme !!

itpp2012 November 11, 2015 06:23AM

RE: Redirect request based on source $scheme !!

Lukas Tribus November 11, 2015 07:56AM

Re: Redirect request based on source $scheme !!

Francis Daly November 11, 2015 08:34AM

Re: Redirect request based on source $scheme !!

B.R. November 11, 2015 09:16AM

Re: Redirect request based on source $scheme !!

shahzaib1232 November 11, 2015 12:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready