Welcome! Log In Create A New Profile

Advanced

Serve 2 https server{} block for 2 adress

Posted by otyugh 
Serve 2 https server{} block for 2 adress
July 04, 2017 10:55AM
Hey,
I successfully was able to set online a website in https ; but when I try to put a second one I get the following error :

""
[alert] 27063#0: worker process 27157 exited on signal 11
""

...Multiple time until the client does timeout.
There is the two https part, the two of them work if I disable one or another.
What am I missing ? :(

""
server {
server_name arzinfo.pwnz.org;
listen 443 ssl default_server;
listen [::]:443 default_server;#ipv6only=on;

index index.php index.html;
root /srv/arzinfo.pwnz.org;

ssl_certificate /etc/letsencrypt/live/arzinfo.pwnz.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/arzinfo.pwnz.org/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/arzinfo.pwnz.org/fullchain.pem;
location / {
try_files $uri $uri/ =404;
}
}
""
Second one :
""
server {
server_name otyugh.pwnz.org;
listen 443 ssl;
listen [::]:443;#ipv6only=on;

index index.php index.html;
root /srv/otyugh.pwnz.org;

ssl_certificate /etc/letsencrypt/live/otyugh.pwnz.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/otyugh.pwnz.org/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/otyugh.pwnz.org/fullchain.pem;
location / {
try_files $uri $uri/ =404;
}
}
""
Re: Serve 2 https server{} block for 2 adress
July 04, 2017 11:01AM
...Ok. Just made it work. It missed something I did not even include here (it was tls tweaks I thought unimportant on the issue)

this snippet :

""
ssl_protocols TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers 'ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-RSA-CHACHA20-POLY1305';
ssl_ecdh_curve secp384r1;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_session_timeout 1d;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
""

I don't understand why this solve the problem, but it does. Maybe the tickets off ? No idea.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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