Hi Team,
I have started to work with Graylog(3).for my company .
I am able to login to Graylog front-end with port “http://cmpy-domain:9000” but without port unable to login “http://cmpy-domain” or “https://cmpy-domain”. I getting the below error.
Error - the server returned: 404 - cannot POST https://cmpy-domain/system/sessions (404
I have configure the port proxy with nginx. please check “xxxx.conf” file.:
server {
listen 80;
listen [::]:80;
server_name cmpy-domain;
return 301 https:///cmpy-domain;
}
server
{
listen 443 ssl;
listen [::]:443 ssl;
server_name cmpy-domain;
ssl_certificate /etc/ssl/bundle.cert.pem;
ssl_certificate_key /etc/ssl/local.key2.pem;
#access_log /var/log/nginx/graylog-server/access.log;
#error_log /var/log/nginx/graylog-server/error.log;
location / {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Graylog-Server-URL https://$server_name/;
proxy_pass http://10.99.99.26:9000;
}
}
Please help me.