<div dir="ltr">I am posting this again because a copy never appeared in my inbox. Please ignore if it was actually delivered to the group already. <div><br></div><div><span style="font-size:12.8px">I am using nginx as a load balancer. However when I type in the URL for my site, which resolves to the IP of the load balancer, I get the default nginx page saying "nginx has been setup more configuration is required". I would expect nginx to forward my request through to the backend servers I have defined. And oddly enough, there is very little in the way of logging going on, to tell me why its failing. </span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><b>My nginx.conf file is as follows:</b></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>user  nginx;</div><div>worker_processes  4;</div><div><br></div><div>error_log  /var/log/nginx/error.log warn;</div><div>pid        /var/run/nginx.pid;</div><div><br></div><div><br></div><div>events {</div><div>    worker_connections  1024;</div><div>}</div><div><br></div><div><br></div><div>http {</div><div>    upstream <a href="http://myappliationsite.net/" target="_blank">myappliationsite.net</a> {</div><div>        # Use ip hash for session persistance</div><div>        ip_hash;</div><div>        server <a href="http://backendappsite1.net/" target="_blank">backendappsite1.net</a>;</div><div>        server <a href="http://backendappsite2.net/" target="_blank">backendappsite2.net</a>;</div><div>        server <a href="http://backendappsite3.net/" target="_blank">backendappsite3.net</a>;</div><div><br></div><div>        # The below only works on nginx plus</div><div>        #sticky route $route_cookie $route_uri;</div><div>}</div><div>    include       /etc/nginx/mime.types;</div><div>    default_type  application/octet-stream;</div><div><br></div><div>    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '</div><div>                      '$status $body_bytes_sent "$http_referer" '</div><div>                      '"$http_user_agent" "$http_x_forwarded_for"';</div><div><br></div><div>    access_log  /var/log/nginx/access.log  main;</div><div><br></div><div>    sendfile        on;</div><div>    #tcp_nopush     on;</div><div><br></div><div>    keepalive_timeout  60;</div><div><br></div><div>    gzip  on;</div><div><br></div><div>    include /etc/nginx/conf.d/*.conf;</div><div>}</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><b>My default.conf file is as follows:</b></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>server {</div><div><br></div><div>    listen       80;</div><div>    server_name <a href="http://myappliationsite.net/" target="_blank">myappliationsite.net</a>;</div><div>    keepalive_timeout 70;</div><div><br></div><div>    #charset koi8-r;</div><div>    #access_log  /var/log/nginx/log/host.access.log  main;</div><div><br></div><div>    location / {</div><div>        root   /usr/share/nginx/html;</div><div>        index  index.html index.htm;</div><div>    }</div><div><br></div><div>    #error_page  404              /404.html;</div><div><br></div><div>    # redirect server error pages to the static page /50x.html</div><div>    #</div><div>    error_page   500 502 503 504  /50x.html;</div><div>    location = /50x.html {</div><div>        root   /usr/share/nginx/html;</div><div>    }</div><div><br></div><div>    # proxy the PHP scripts to Apache listening on <a href="http://127.0.0.1/" target="_blank">127.0.0.1:80</a></div><div>    #</div><div>    location ~ \.php$ {</div><div>        proxy_pass   <a href="http://myappliationsite.net/" target="_blank">http://myappliationsite.net</a>;</div><div>        proxy_set_header HOST <a href="http://myappliationsite.net/" target="_blank">myappliationsite.net</a>;</div><div>        proxy_http_version 1.1;</div><div>        proxy_set_header Connection "";</div><div>    }</div><div><br></div></div><div style="font-size:12.8px"><div> # pass the PHP scripts to FastCGI server listening on <a href="http://127.0.0.1:9000/" target="_blank">127.0.0.1:9000</a></div><div>    #</div><div>    #location ~ \.php$ {</div><div>    #    root           html;</div><div>    #    fastcgi_pass   <a href="http://127.0.0.1:9000/" target="_blank">127.0.0.1:9000</a>;</div><div>    #    fastcgi_index  index.php;</div><div>    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;</div><div>    #    include        fastcgi_params;</div><div>    #}</div><div><br></div><div>    # deny access to .htaccess files, if Apache's document root</div><div>    # concurs with nginx's one</div><div>    #</div><div>    #location ~ /\.ht {</div><div>    #    deny  all;</div><div>    #}</div><div>}</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>server {</div><div><br></div><div>    listen       443 ssl;</div><div>    server_name <a href="http://myappliationsite.net/" target="_blank">myappliationsite.net</a>;</div><div>    keepalive_timeout 70;</div><div><br></div><div>    ssl_certificate     /certs/fd.crt;</div><div>    ssl_certificate_key /keys/lb.key;</div><div>    ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;</div><div>    ssl_ciphers         HIGH:!aNULL:!MD5;</div><div><br></div><div>    #charset koi8-r;</div><div>    #access_log  /var/log/nginx/log/host.access.log  main;</div><div><br></div><div>    location / {</div><div>        root   /usr/share/nginx/html;</div><div>        index  index.html index.htm;</div><div>    }</div><div><br></div><div>    #error_page  404              /404.html;</div><div><br></div><div>    # redirect server error pages to the static page /50x.html</div><div>    #</div><div>    error_page   500 502 503 504  /50x.html;</div><div>    location = /50x.html {</div><div>        root   /usr/share/nginx/html;</div><div>    }</div><div><br></div><div>    # proxy the PHP scripts to Apache listening on <a href="http://127.0.0.1/" target="_blank">127.0.0.1:80</a></div><div>    #</div><div>    location ~ \.php$ {</div><div>       proxy_pass   <a href="https://myappliationsite.net/" target="_blank">https://myappliationsite.net</a>;</div><div>       proxy_set_header HOST <a href="http://myappliationsite.net/" target="_blank">myappliationsite.net</a>;</div><div>       proxy_http_version 1.1;</div><div>       proxy_set_header Connection "";</div><div>    }</div><div><br></div><div>    # pass the PHP scripts to FastCGI server listening on <a href="http://127.0.0.1:9000/" target="_blank">127.0.0.1:9000</a></div><div>    #</div><div>    #location ~ \.php$ {</div><div>    #    root           html;</div><div>    #    fastcgi_pass   <a href="http://127.0.0.1:9000/" target="_blank">127.0.0.1:9000</a>;</div><div>    #    fastcgi_index  index.php;</div><div>    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;</div><div>    #    include        fastcgi_params;</div><div>    #}</div></div><div style="font-size:12.8px">    # deny access to .htaccess files, if Apache's document root</div><div style="font-size:12.8px">    # concurs with nginx's one</div><div style="font-size:12.8px">    #</div><div style="font-size:12.8px">    #location ~ /\.ht {</div><div style="font-size:12.8px">    #    deny  all;</div><div style="font-size:12.8px">    #}</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">    Can anyone help my get requests to go to the backend servers? Is there any other config or depenency apps needed that I may not have installed or running? Also is there a way to enable more advanced debug logging to give me a better idea whats going on?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks in advance!</div></div></div>