html - Web content such as Images not showing up in Google App Engine Proxy? -


i making proxy google app engine (gae) , running problem. have added app.yaml;

application: appname version: secureable runtime: python27 api_version: 1 threadsafe: true  handlers: - url: /robots\.txt   static_files: static/robots.txt   upload: static/robots\.txt  - url: /(.*\.(gif|png|jpg|ico|js|css|swf|php))   static_files: \1   upload: (.*\.(gif|png|jpg|ico|js|css|swf|php))  - url: /images\.ico   static_files: images/db_favicon.ico   upload: images/db_favicon\.ico  - url: /static   static_dir: static   secure: optional  - url: /.*   script: mirror.app   secure: optional 

as can see has of general stuff, have added;

    - url: /(.*\.(gif|png|jpg|ico|js|css|swf|php))       static_files: \1       upload: (.*\.(gif|png|jpg|ico|js|css|swf|php)) 

which has made of webpage images disappear of formatting/css. well, returns html , it. error has occured when added want swf files , other things work (like gif's , other stuff). - thanks

here advice. delete regex stuff:

- url: /(.*\.(gif|png|jpg|ico|js|css|swf|php))   static_files: \1   upload: (.*\.(gif|png|jpg|ico|js|css|swf|php)) 

put static files (gif, swf, css, jpg, js,etc) static directory, , access them using /static/filename.ext. (filename means whatever filename use, , ext means whatever extension file, gif, css, etc.) not use regex until understand doing. simple site, using simple static directory clean solution.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -