server { listen 443 ssl; listen [::]:443 ssl; server_name avatar.example.com; #access_log /var/log/nginx/avatar main; error_log /var/log/nginx/avatar warn; ssl_certificate /var/lib/dehydrated/certs/avatar.example.com/fullchain.pem; ssl_certificate_key /var/lib/dehydrated/certs/avatar.example.com/privkey.pem; location / { include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/cgi-fcgiwrap.socket-1; fastcgi_param SCRIPT_FILENAME /usr/bin/libravatarserv; # fastcgi_param LIBRAVATARSERV_DEFAULT_FALLBACK 404; # fastcgi_param LIBRAVATARSERV_REDIRECT_NOFALLBACK 0; # fastcgi_param LIBRAVATARSERV_REDIRECT_NOUSER 0; } } server { listen 80; listen [::]:80; server_name avatar.example.com; # access_log /var/log/nginx/avatar main; error_log /var/log/nginx/avatar warn; location / { include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/cgi-fcgiwrap.socket-1; fastcgi_param SCRIPT_FILENAME /usr/bin/libravatarserv; } }