ukris / typhoonae

Automatically exported from code.google.com/p/typhoonae
0 stars 0 forks source link

Static file in root doesn't work #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create app with static file in the root "/" of the site

app.yaml:
-   url: /
    static_files: index.html
    upload: index.html

2. Go to the root of the site.
3. Get 404 or 502 error instead of the file. 

Original issue reported on code.google.com by dimaulu...@gmail.com on 10 Jan 2010 at 2:51

GoogleCodeExporter commented 9 years ago
The same for static_dir in root.
Instead of files we are getting error 502 in the browser and "*3 upstream 
closed 
prematurely FastCGI stdout while reading response header from upstream" error 
in 
httpd-error.log.

Original comment by dimaulu...@gmail.com on 10 Jan 2010 at 3:09

GoogleCodeExporter commented 9 years ago

Original comment by tobias.r...@gmail.com on 14 Jan 2010 at 7:16

GoogleCodeExporter commented 9 years ago
This is another issue where apptool misinterprets the static_files option. The 
output in etc/server.conf should 
be:

location ~* ^/(index.html)$ {
    root /path/to/your/app;
    rewrite ^/(index.html)$ /$1 break;
    expires 30d;
}

As a workaround edit the etc/server.conf file after running bin/apptool. I'm 
going to fix this in apptool for the 
coming release.

Original comment by tobias.r...@gmail.com on 14 Jan 2010 at 9:43

GoogleCodeExporter commented 9 years ago
Fixed in the trunk.

Original comment by tobias.r...@gmail.com on 17 Jan 2010 at 4:13

GoogleCodeExporter commented 9 years ago
Fix included in 0.1.2 release.

Original comment by tobias.r...@gmail.com on 8 Feb 2010 at 8:12