header - nginx server block where to put underscores_in_headers on; using certbot ssl / letsencrypt -
i using certbot generate ssl certificates lets encrypt traffic forwarded 443/ssl.
i need add flag underscores_in_headers on; print headers forward partner if try , add flag server block causes error , fails (see in "listen 443" block).
ive added listen on 80 block doesnt work either. ideas?
server { listen 80; underscores_in_headers on; root /home/www/staging; index index.php index.html index.htm; server_name url; error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/www; } location / { try_files $uri $uri/ /index.php?$args; #proxy_redirect http:// https://; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; } listen 443 ssl; underscores_in_headers on; ssl_certificate /etc/letsencrypt/live/url/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/url/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf;
}
Comments
Post a Comment