on cloud VM
I set this nginx.conf file with redis and openresty
my_nginx.conf -
worker_processes 1;
error_log logs/error.log;
events{
worker_connections 1024;
}
http {
server {
listen 8080;
location / {
redis2_query set hello world;
redis2_query get hello;
redis2_pass 127.0.0.1:6379;
}
}
}
I run this conf as
$nginx -p pwd/ -c my_nginx.conf
now when I visit the ip address of this vm in my local browser I get error
502 bad gateway
openresty/1.5.12.1
http://xxx.xxx.xxx.xxx:8080/
where am I making mistake?