Skip to content

Instantly share code, notes, and snippets.

@kylewu
Created May 9, 2012 02:22
Show Gist options
  • Save kylewu/2641287 to your computer and use it in GitHub Desktop.
Save kylewu/2641287 to your computer and use it in GitHub Desktop.
host config file for gaia
# Redirect [browser|sms|...].gaiamobile.org to ${GAIA}/apps/[browser|sms|...]/.
<VirtualHost *:80>
ServerName homescreen.gaiamobile.org
ServerAlias *.gaiamobile.org
VirtualDocumentRoot /path/to/gaia/apps/%1/
</VirtualHost>
<VirtualHost *:80>
ServerName gaiamobile.org
ServerAlias gaiamobile.org
DocumentRoot /path/to/gaia
</VirtualHost>
# Add the correct mimetypes for offline cache manifest
AddType text/cache-manifest .appcache
# Prevent Apache from caching apps files
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 0 hours"
ExpiresByType text/html "access plus 0 hours"
ExpiresByType text/xml "access plus 0 hours"
ExpiresByType text/css "access plus 0 hours"
ExpiresByType text/plain "access plus 0 hours"
ExpiresByType application/x-javascript "access plus 0 hours"
ExpiresByType application/javascript "access plus 0 hours"
ExpiresByType text/javascript "access plus 0 hours"
ExpiresByType text/cache-manifest "access plus 0 hours"
ExpiresByType image/gif "access plus 0 hours"
ExpiresByType image/png "access plus 0 hours"
ExpiresByType image/jpeg "access plus 0 hours"
ExpiresByType image/x-icon "access plus 0 hours"
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment