Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <html><head>
  2. <meta http-equiv="content-type" content="text/html;charset=utf-8">
  3. <title>404 Not Found</title>
  4. </head>
  5. <body text=#000000 bgcolor=#ffffff>
  6. <h1>Error: Not Found</h1>
  7. <h2>The requested URL <code>/foo</code> was not found on this server.</h2>
  8. <h2></h2>
  9. </body></html>
  10.  
  11. runtime: php55
  12. api_version: 1
  13. threadsafe: true
  14.  
  15. # Handle the main page by serving the index page.
  16. handlers:
  17. - url: /$
  18. static_files: build/index.html
  19. upload: build/index.html
  20.  
  21. # Handle folder urls by serving the index.html page inside.
  22. - url: /(.*)/$
  23. static_files: build/1/index.html
  24. upload: build/.*/index.html
  25.  
  26. # Handle nearly every other file by just serving it.
  27. - url: /(.+)
  28. static_files: build/1
  29. upload: build/(.*)
  30.  
  31. # all other pages are a 404
  32. - url: /.*
  33. static_files: build/404.html
  34. upload: build/404.html
  35.  
  36. # This doesn't work either
  37. error_handlers:
  38. - file: build/404.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement