Created
May 9, 2012 02:22
-
-
Save kylewu/2641287 to your computer and use it in GitHub Desktop.
host config file for gaia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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