I have a EC2 node with SG running and want to use Nginx to act as a proxy
for requests to the admin port on the SG. Both are running off the same EC2
node. However, any requests to the proxy returns a 502 error.
Here is my Nginx settings:
upstream sync_gateway {
server 127.0.0.1:4985;
}
server {
listen 80;
server_name dl.mydomain.com;
location / {
proxy_pass http://sync_gateway;
proxy_pass_header Accept;
proxy_pass_header Server;
proxy_http_version 1.1;
keepalive_requests 1000;
keepalive_timeout 360s;
proxy_read_timeout 360s;
}
}
Do I need to add any thing else to this?
I know my SG is setup correctly, as requests directly to 127.0.0.1:4985
work fine. But request to 127.0.0.1:80 return 502.
Todd
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/e076f2e0-b2c5-49fb-ac76-1c1f64684b81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.