ok, please be kind, my brain is moosh trying to go thru 92 pages, and search didnt help either
am trying to setup subdomain medusa, there is no sample avail so here is my try, but I am getting bad gateway, I know its something simple., but I Just cant see it atm
# make sure that your dns has a cname set for medusa
# to enable password access, uncomment the two auth_basic lines
server {
listen 443 ssl;
server_name medusa.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
# auth_basic "Restricted";
# auth_basic_user_file /config/nginx/.htpasswd;
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_medusa binhex-medusa;
proxy_pass http://$upstream_medusa:8082;
}
}
yes, i am using binhex still - but am planing on moving over soon....
Error log shows:
2018/08/14 20:28:11 [error] 386#386: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.1, server: medusa.*, request: "GET /favicon.ico HTTP/1.1", upstream: "http://172.18.0.4:8082/favicon.ico", host: "medusa.townecrier.extensionhidden", referrer: "https://medusa.townecrier.extensionhidden/"
Please help me, thanks
Myk