title: Google App Engine ignores context path
body: <p>I have the following context path handlers in my app.yaml:</p>
  
  <pre><code>runtime: nodejs
  env: flex
  
  resources:
    cpu: 1
    memory_gb: 1
    disk_size_gb: 20
  
  handlers:
  - url: /api
    secure: always
    script: app.js
  
  - url: /
    secure: always
    static_dir: public
  </code></pre>
  
  <p>Static works OK. There are two problems i have:</p>
  
  <pre><code>secure: always
  </code></pre>
  
  <p>pragma does not work as expected. There's no redirect from http to https.</p>
  
  <p>Second, i have <strong>/test</strong> endpoint in my NodeJS app. However <strong>/api/test</strong> is 404, but <strong>/test</strong> works, ignoring <strong>/api</strong>.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Generated runtime config:</p>
  
  <pre><code>runtime: nodejs
  api_version: '1.0'
  env: flexible
  threadsafe: true
  handlers:
    - url: /api
      script: app.js
      secure: always
    - url: '/(.*)'
      secure: always
      application_readable: false
      static_files: "public/\\1"
      require_matching_file: false
      upload: 'public/.*'
  automatic_scaling:
    min_num_instances: 2
    max_num_instances: 20
    cpu_utilization:
      target_utilization: 0.5
  resources:
    cpu: 1
    memory_gb: 1
    disk_size_gb: 20
  </code></pre>