I'm struggling to setup URL handlers in the handlers
section of my app.yaml
file for my standard engine php application.
Following code makes both mydomain.com/abc.php
and mydomain.com
display the abc.php
file in my dist
folder:
handlers:
- url: /(abc\.php)
script: dist/abc.php
- url: /(.*)
script: dist/abc.php
However, I don't want a catch all handler, so I removed it so only 1 handler exists:
handlers:
- url: /(abc\.php)
script: dist/abc.php
Now when I go to mydomain.com/abc.php
, I'm getting a 500 error:
How can I make a targeted URL work on GAE without using a handler for all URL's?
My app.yaml file contained resources:
manual_scaling:
instances: 1
resources:
cpu: 1
memory_gb: 1
disk_size_gb: 10
Since this isn't supported by the App Engine Standard environment, simply commenting out this code resolved the issue.