Welcome! Log In Create A New Profile

Advanced

Re: preventing requests with unknown host names

Igal @ Lucee.org
August 21, 2015 02:14PM
On 8/21/2015 4:49 AM, navern wrote:
> On 21.08.2015 10:30, Francis Daly wrote:
>> On Thu, Aug 20, 2015 at 11:35:58PM -0700, Igal @ Lucee.org wrote:
>>> On 8/20/2015 3:55 PM, Igal @ Lucee.org wrote:
>> Hi there,
>>
>> I do not know the full answer to your question.
>>
>>> when I tried to add listen for port 443 it broke the https for requests
>>> with the valid hostname as well.
>>>
>>> ## disable http server for requests with unknown hosts
>>> server {
>>>
>>> listen IP:80 default_server;
>>> # listen IP:443 default_server; # breaks all https??
>>> return 444;
>>> }
>>>
>>> what's the trick to do the same for https without breaking the requests
>>> for https://myhost/ ?
>> You will need at least a proper ssl configuration in that server{}
>> block -- possibly setting it at http level.
>>
>> See, for example,
>> http://nginx.org/en/docs/http/configuring_https_servers.html#name_based_https_servers
>>
>>
>> In general, the ssl hostname that the browser wants to connect to is
>> not available until after the ssl negotiation has happened.
>>
>> f
> Look at this link:
> http://nginx.org/en/docs/http/configuring_https_servers.html#sni
>
> SNI will help you with to have listen separate server_name on one IP
> and have default_server.
I have SNI enabled (running on Windows and confirmed by calling `$
nginx -V`

not sure how to "use" that?

thanks

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

preventing requests with unknown host names

Igal @ Lucee.org August 20, 2015 05:48PM

Re: preventing requests with unknown host names

Francis Daly August 20, 2015 06:18PM

Re: preventing requests with unknown host names

Igal @ Lucee.org August 20, 2015 06:58PM

Re: preventing requests with unknown host names

Igal @ Lucee.org August 21, 2015 02:38AM

Re: preventing requests with unknown host names

Francis Daly August 21, 2015 03:32AM

Re: preventing requests with unknown host names

navern August 21, 2015 07:52AM

Re: preventing requests with unknown host names

Igal @ Lucee.org August 21, 2015 02:14PM

Re: preventing requests with unknown host names

Igal @ Lucee.org August 21, 2015 10:28AM

Re: preventing requests with unknown host names

Francis Daly August 21, 2015 03:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
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