Wpis z mikrobloga

Mireczki mam mały problemik z #linux. Ogólnie to tak:
- system #centos
- firewalld

# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: venet0
sources:
services: http https ssh
ports: 8080/tcp
protocols:
masquerade: no
forward-ports:
sourceports:
icmp-blocks:
rich rules:

- certyfikarty z #letsencrypt przy pomocy #certbot

certbot renew
- konfiguracje #nginx

server {
listen 80;
listen [::]:80;
server_name example.com www.example.com;
return 301 https://$host$request_uri;
}

server {
listen 443;
listen [::]:443;
server_name example.com www.example.com;
root /var/www/example;

ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;

# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;

location / {

if ($http_host ~* "^www\.(.*)$"){
rewrite ^(.*)$ https://%1$1 redirect;
}

index index.html;
}
}

oczywiście domena inna niż example.com (literówki posprawdzane)

i na wyjściu od chrome mam ERRCONNECTIONCLOSED a curl:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
  • 13
@calka_stochastyczna nic pilnego narazie :P

@bramborak to dystrybucja z ovh, brak selinux

# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2017-01-23 20:42:05 CET; 31min ago
Process: 22924 ExecReload=/bin/kill -s HUP $MAINPID (code=exited, status=0/SUCCESS)
Process: 22833 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Process: 22830 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
Process: 22827 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Main PID: 22834