Problem: a server behind proxy unreachable for api listening port 3050 with bedrock wordpress.
I had deployed wordpress with Trellis to my VMs. Everything is up and running perfectly. The wordpress site is accessible to the example.com but it won’t able access through IP address like 192.168.1.157
I had setup a node api that listening on port 3050. but when I try to browse/curl it with 192.168.1.157:3050 or 192.168.1.157/api
Chrome is return: This site can’t be reached ; ERR_CONNECTION_REFUSED
I only able to reach the site with example.com/api
I have a Nginx reverse proxy that help me route to my Proxmox VMs.
Here is the routing rules that written on my revesed proxy:
location ~* /api/ {
client_max_body_size 500M;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto http;
rewrite ^/api/(.*) /$1 break;
proxy_pass http://192.168.1.157:3050;
}
Normally the node api should be reachable like:
screenshot: http://goo.gl/flh2OE
but now:
screenshot: http://goo.gl/0pNpi7
I am looking for a way, that my Trellis Wordpress can be access with 192.168.1.157 . I think it will help me solve the problem.
Any advise are appreciated
Thanks