Welcome! Log In Create A New Profile

Advanced

Re: Nginx serving self-signed cert instead of the one defined in conf

August 11, 2015 02:21PM
Hi Maxim,

Thanks for your answer. Alas ! I check all config files in my /etc/nginx directory, there's only one containing the server{} directive (for the sake of it, I added the default_server to the listen directive, but it doesn't change anything) :

---------------------------------------------------------------------------------------------
pi@rpi /etc/nginx $ grep -r server *
fastcgi.conf:fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi.conf:fastcgi_param SERVER_ADDR $server_addr;
fastcgi.conf:fastcgi_param SERVER_PORT $server_port;
fastcgi.conf:fastcgi_param SERVER_NAME $server_name;

scgi_params:scgi_param SERVER_PROTOCOL $server_protocol;
scgi_params:scgi_param SERVER_PORT $server_port;
scgi_params:scgi_param SERVER_NAME $server_name;

sites-available/myfqdn:# server {
sites-available/myfqdn:server {
sites-available/myfqdn: listen 443 ssl default_server; ## listen for ipv4; this line is default and implied
sites-available/lmyfqdn: #listen [::]:80 default_server ipv6only=on; ## listen for ipv6
sites-available/myfqdn: server_name myfqdn;
sites-available/myfqdn: ssl_prefer_server_ciphers on;
sites-available/myfqdn: # redirect server error pages to the static page /50x.html

uwsgi_params:uwsgi_param SERVER_PROTOCOL $server_protocol;
uwsgi_params:uwsgi_param SERVER_PORT $server_port;
uwsgi_params:uwsgi_param SERVER_NAME $server_name;

---------------------------------------------------------------------------------------------

Could it be possible that nginx reads some other config files from another location than /etc/nginx ?
What are my other options (some more debug info would be useful to check where nginx gets its config from).

any idea ?

Thanks
Arno
Subject Author Posted

Nginx serving self-signed cert instead of the one defined in conf

Arno0x0x August 11, 2015 01:27PM

Re: Nginx serving self-signed cert instead of the one defined in conf

Maxim Dounin August 11, 2015 02:02PM

Re: Nginx serving self-signed cert instead of the one defined in conf

Arno0x0x August 11, 2015 02:21PM

Re: Nginx serving self-signed cert instead of the one defined in conf

Arno0x0x August 12, 2015 05:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 289
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready