Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8082113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:58:45+00:00 2026-06-05T16:58:45+00:00

I am trying to use Google App Engine’s app.yaml to automatically serve *.html files

  • 0

I am trying to use Google App Engine’s app.yaml to automatically serve *.html files when it is requested. So I have the following in my file structure:

-myapp
    -html (folder)
        -index.html
    -index.py

In my app.yaml I have:

handlers:
-url: /*\.html
static_dir: html

-url: /.*
script: index.app

However, when I run this on my browser localhost:8080/index.html, I get a 404 Not Found.
Why is it not routing to my index.html file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:58:47+00:00Added an answer on June 5, 2026 at 4:58 pm

    There is several ways you can do this type of thing depending on what you want exactly. You can use a regex such as @hyperslug added if all you want is static content without any of the more advanced features.

    You can set urls like so:

    - url: /
      static_files: static/html/index.html
      upload: static/html/index.html
      secure: never
    

    which allows you to set page security on a individual file basis if that is what you want. Or you can combine regex with security such as:

    - url: /(.*\.(gif|png|jpg))
      static_files: \1
      upload: (.*\.(gif|png|jpg))
      secure: always
    

    Remember that if your sharing the pages with public search engines treat http/https as 2 different links. As well as with and without trailing /.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to use http://www.javarants.com/2008/04/13/using-google-app-engine-to-extend-yahoo-pipes/ as inspiration, but I'm having some troubles with the
I'm trying to use Struts 2 framework for my Google App Engine project. I
So I'm trying to use the django 1.1 template engine with the google app
I'm new to Java server programming, and I'm trying to use Google app engine.
I'm trying to use a JDO with Google App Engine and Scala. The api
I'm trying to use PIL for a Google App Engine project. I've installed PIL
i am trying to use velocity framework on google app engine. i wrote a
I am trying to setup django-nonrel on GAE (Google App Engine) - following the
I'm trying to use restFB on Google App Engine, when I try and get
I'm trying to learn how to use the google app engine because I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.