Help cloudflare ssl aws ubuntu 521 error

my conf file

sserver {
listen 433 ssl;
listen [::]:443 ssl;
ssl_certificate /etc/ssl/cloudflare.pem;
ssl_certificate_key /etc/ssl/cloudflare.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;

a 1mb cache can hold about 4000 sessions, so we can hold 40000 sessions

ssl_session_timeout  24h;
# Use a higher keepalive timeout to reduce the need for repeated handshakes
keepalive_timeout 300; # up from 75 secs default
add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains';

root /var/www/organixdolap/public;
index index.php index.html index.htm index.nginx-debian.html;
location / { try_files $uri $uri/ /index.php?$args; }

location ~ \.php$ { include snippets/fastcgi-php.conf;

With php-fpm (or other unix sockets);

fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;

With php-fpm (or other unix sockets);

server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301;

mysite address

your web server is down. May be wrong configuration file added.
Try to run nginx -t to see if it’s a valid config or not

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.