I fixed now the problem, not sure is the best way but at least working. In the two server https block you need to put all cert information (ssl_certificate bla bla) in domain2.com and www.domain2.com. I just only put cert information in www.domain2.com and domain2.com only redirect in what i put in the example config in my initial thread. I tried to simplify the config to only use less seby Kurogane - Nginx Mailing List - English
>Are you sure that a tool you're using to check supports SNI? >wbr, Valentin V. Bartenev What tool you're talking about? this error show in browser. >Do you have four separate ssl certificate files, each of which is valid >for a single server name? >Or do you have one ssl certificate file which is valid for multiple server names? I'm not sure why you mean but i haveby Kurogane - Nginx Mailing List - English
>It looks to me like your question is "how do I run multiple https web sites on a single IP address?". >If that is the case, then the modern answer is "use SNI". >http://nginx.org/en/docs/http/configuring_https_servers.html I'm not sure what is your point here? nginx have built SNI a decade ago even CentOS have nginx updated version. If my nginx not have enby Kurogane - Nginx Mailing List - English
I am using nginx with multiples https with a single IPv4 and dedicated IPv6 for each domain. The problem i'm having is i'm unable to redirect non www to www without conflicting with the vhosts. Here my setup Default server { listen 80 default_server; listen [::2]:80 default_server; server_name localhost; } domain server { listen 80; listen [::2]:80; servby Kurogane - Nginx Mailing List - English
I never thought about it very ingenious indeed. If there is another way to accomplish it let me know.by Kurogane - Nginx Mailing List - English
Domain 1 server { listen 80; server_name domain1.com; return 301 $scheme://www.$host$request_uri; } server { listen 80; server_name www.domain1.com; root /home/domain1/public_html; ... } Domain 2 (SSL) server { listen 80; server_name domain2.com; return 301 $scheme://www.$host$request_uri; } server {by Kurogane - Nginx Mailing List - English
Nginx is not suppose work in block/vhost? that is not the issue here.by Kurogane - Nginx Mailing List - English
Hi, I've a problem with non ssl. I got this setup. domain1.com domain2.com SSL The certificate i not have issue all is fine here. The problem is when someone go to this https://domain1.com is show domain2.com content. How i can solve this issue? i have multi domain using same IP and all domains go to "SSL" if not the right SSL domain always show domain2.com content. Whby Kurogane - Nginx Mailing List - English
I've a problem with a redirect http https and using non-www Can you tell me what is wrong? sometimes i have redirect loop. server { listen 80; listen [::1]:80; server_name domain.com; return 301 https://www.domain.com$request_uri; } server { listen 80; listen [::1]:80; server_name www.domain.com; return 301 https://www.domain.comby Kurogane - Nginx Mailing List - English
Thats working thanks!! I set default_server in localhost because i want to show default page when you go to http://1.2.3.4by Kurogane - Nginx Mailing List - English
Hello All, I am facing some issue regarding nginx redirection i'm unable to fix it. I want to create redirect non www to www but always redirect me to default_server how i can fix this issue. This is what i have server { listen 80 default_server; server_name localhost; root /home/nginx/default/public; .... } server { listen 80; server_name domain.com; return 301 $sby Kurogane - Nginx Mailing List - English
I've a problem when i try to send mass email in a forum. Nginx give me error 502, looking in the logs only give me this error. "2011/08/31 16:40:54 25124#0: *3383 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: IP, server: domain.com, request: "POST /forum/index.php?action=admin;area=news;sa=mailingsend HTTP/1.1", upstream: &quby Kurogane - Php-fpm Mailing List - English