Skip to content

Instantly share code, notes, and snippets.

@pradeepkumargali
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pradeepkumargali/991f02d07c8177028203 to your computer and use it in GitHub Desktop.
Save pradeepkumargali/991f02d07c8177028203 to your computer and use it in GitHub Desktop.
Hosting a static website on Google AppEngine - Java
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>sree-kumar</application>
<version>2</version>
<static-files>
<include path="/static/**" expiration="30d 5h" />
</static-files>
<public-root>/static</public-root>
<!--
Allows App Engine to send multiple requests to one instance in parallel:
-->
<threadsafe>true</threadsafe>
<!-- Configure java.util.logging -->
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
</system-properties>
<!--
HTTP Sessions are disabled by default. To enable HTTP sessions specify:
<sessions-enabled>true</sessions-enabled>
It's possible to reduce request latency by configuring your application to
asynchronously write HTTP session data to the datastore:
<async-session-persistence enabled="true" />
With this feature enabled, there is a very small chance your app will see
stale session data. For details, see
http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions
-->
</appengine-web-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment