I'm trying to serve my first static website using google app engine. But it happens that I get 404 not found error except the home page on the deploying server. The strange thing is that everything is fine while running locally with dev_appserver.py, what am I doing wrong?
Here is my app.yaml file:
runtime: go
api_version: go1
handlers:
- url: /$
static_files: index.html
upload: index.html
- url: /(.*)/$
static_files: \1/index.html
upload: /(.*)/index.html
- url: /(.*\.(gif|png|jpg|js|css))$
static_files: \1
upload: .*\.(gif|png|jpg|js|css)$
- url: /.*
script: _go_app
Here is some logs from command gcloud app logs when I try to access other pages by get request (more specifically here I'm trying url mydomain/art/ which should be directed to art/index.html file in my project repertory):
2018-09-16 10:22:51 default[version] "GET /art/ HTTP/1.1" 404
2018-09-16 10:22:51 default[version] "GET /favicon.ico HTTP/1.1" 302
2018-09-16 10:22:51 default[version] "GET / HTTP/1.1" 204
whereas no problem on local server:
INFO 2018-09-16 10:23:12,434 module.py:880] default: "GET /art/ HTTP/1.1" 304 -