Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I shows that “400 Bad request No required SSL certificate was sent nginx/1.18.0 (Ubuntu)”
The website wroks fine before the ssl installation
Authenticated Origin Pulls : ✅ Full (strict)✅ SSL/TLS Recommender✅
server {
listen 80;
listen [::]:80;
server_name domain.xyz www.domain.xyz;
return 302 https://$server_name$request_uri;
}
server {
# SSL configuration
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/ssl/cert.pem;
ssl_certificate_key /etc/ssl/key.pem;
ssl_client_certificate /etc/ssl/cloudflare.crt;
ssl_verify_client on;
server_name domain.xyz www.domain.xyz;
location = /favicon.ico { access_log off; log_not_found off; }
location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
}
}
Please Help…
Hi The website i want to host is using nextjs. To do this i’ve setup a reverse proxy however i don’t know the correct way todo it. I have followed your guide and others online but i only receive the ‘Bad gateway’ message when trying to access the page. I guess what i’m trying to say is that a guide on how to create a revers proxy with nginx and cloudflare would be nice or even just some insight as to where i’ve gone wrong.
server {
server_name domain;
location / {
proxy_pass http://127.0.0.1:8080; # Where my nextjs website is runnning
proxy_read_timeout 60;
proxy_connect_timeout 60;
proxy_redirect off;
# Allow the use of websockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
listen [::]:443 ssl ipv6only=on;
listen 443 ssl default_server;
# SSL configuration
ssl_certificate /etc/ssl/cert.pem;
ssl_certificate_key /etc/ssl/key.pem;
ssl_client_certificate /etc/ssl/cloudflare.crt;
ssl_verify_client on;
}
server {
if ($host = www.DOMAINNAME.com) {
return 301 https://$host$request_uri;
}
if ($host = DOMAINNAME.com) {
return 301 https://$host$request_uri;
}
listen 80 ;
listen [::]:80 ;
server_name domain;
return 301 https://$host$request_uri;
}
Not working!, the 400 bad request has no fix. wasted hours of my time.