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
>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
>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
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
[b]Default[/b]
[code]
server {
listen 80 default_server;
listen [::2]:8
I never thought about it very ingenious indeed.
If there is another way to accomplish it let me know.
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,269401,269420#msg-269420
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/ma
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;
Nginx is not suppose work in block/vhost? that is not the issue here.
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,269401,269413#msg-269413
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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
domain
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;
Thats working thanks!!
I set default_server in localhost because i want to show default page when
you go to http://1.2.3.4
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,253713,253719#msg-253719
___
nginx mailing list
nginx@nginx.org
http://
No.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,253713,253715#msg-253715
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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 local
12 matches
Mail list logo