Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

I keep getting a 500 Internal Server Error when trying to setup Nginx

2018/12/12 17:00:54 [crit] 10545#10545: *1 crypt_r() failed (22: Invalid argument), client: 192.168.1.185, server: 192.168.1.185, request: "GET / HTTP/1.1", host: "192.168.1.185" 2018/12/12 17:00:54 [crit] 10545#10545: *2 crypt_r() failed (22: Invalid argument), client: 192.168.1.185, server: 192.168.1.185, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.185", referrer: "http://192.168.1.185/"

This is the error in /var/log/nginx/

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
	worker_connections 768;
	# multi_accept on;
}

http {

	##
	# Basic Settings
	##

	sendfile on;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 65;
	types_hash_max_size 2048;
	# server_tokens off;

	 server_names_hash_bucket_size 64;
	# server_name_in_redirect off;

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	##
	# SSL Settings
	##

	ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
	ssl_prefer_server_ciphers on;

	##
	# Logging Settings
	##

	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log;

	##
	# Gzip Settings
	##

	gzip on;

	# gzip_vary on;
	# gzip_proxied any;
	# gzip_comp_level 6;
	# gzip_buffers 16 8k;
	# gzip_http_version 1.1;
	# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

	##
	# Virtual Host Configs
	##

	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;
}


#mail {
#	# See sample authentication script at:
#	# http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
# 
#	# auth_http localhost/auth.php;
#	# pop3_capabilities "TOP" "USER";
#	# imap_capabilities "IMAP4rev1" "UIDPLUS";
# 
#	server {
#		listen     localhost:110;
#		protocol   pop3;
#		proxy      on;
#	}
# 
#	server {
#		listen     localhost:143;
#		protocol   imap;
#		proxy      on;
#	}
#}

Here is nginx.conf

I am trying to set up Nginx to use Kibana, can someone explain how to fix this? Thank you.

It ran successfully.

systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: en
   Active: active (running) since Wed 2018-12-12 18:36:46 EST; 13min ago
     Docs: man:nginx(8)
  Process: 23665 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 
  Process: 23671 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (cod
  Process: 23666 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process
 Main PID: 23676 (nginx)
    Tasks: 9 (limit: 4915)
   Memory: 9.1M
   CGroup: /system.slice/nginx.service
           ├─23676 nginx: master process /usr/sbin/nginx -g daemon on; master_pr
           ├─23678 nginx: worker process
           ├─23679 nginx: worker process
           ├─23680 nginx: worker process
           ├─23681 nginx: worker process
           ├─23683 nginx: worker process
           ├─23684 nginx: worker process
           ├─23685 nginx: worker process
           └─23686 nginx: worker process

Dec 12 18:36:46 m-ThinkPad-T480s systemd[1]: Starting A high performance web ser
Dec 12 18:36:46 m-ThinkPad-T480s systemd[1]: Started A high performance web serv
lines 1-23

Comments