title: How to configure nginx to proxy to a soap webservice
body: <p>I am trying to config a nginx server on an EC2 instance:</p>
  
  <p>What I have done are:</p>
  
  <ol>
  <li>nginx listening 443 with ssl configured </li>
  <li>there is a webservice deployed on the ec2 localhost:8086/applications/, this is what I want nginx to proxy to</li>
  </ol>
  
  <p>What I have now is:</p>
  
  <pre><code>location /applications/.* {
    proxy_pass http://localhost:8086
    proxy_redirect default
  }
  </code></pre>
  
  <p>but this doesn't work, when I try POST with url <code>https://&lt;ip&gt;/applications/?wsdl</code> the nginx error.log reads like below:</p>
  
  <pre><code> [error]15692#0 *1 "/usr/share/nginx/html/applications/index.html" is not found (2: No    such file or directory), client &lt;my_ip&gt;, server: , request "POST /applications/ HTTP/1.1", host: &lt;the_host_ip&gt;
  </code></pre>
  
  <p>Very noob about nginx here, your help will be appreciated, or direct me to wherever documenting this kind of config please.</p>