ant-http/build/htdocs/dist/.htaccess
2016-10-29 14:34:29 +02:00

97 lines
2.6 KiB
ApacheConf

# Generated with `make apache-htaccess`
Options +FollowSymlinks
RewriteEngine on
#RewriteBase /
RewriteCond %{REQUEST_URI} !^index.html
RewriteCond %{REQUEST_URI} !^/http-bind-jabber
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ api.php [QSA,L]
AddCharset UTF-8 .js
AddCharset UTF-8 .html
# For binding to other services
<ifModule mod_proxy.c>
<ifModule mod_proxy_http.c>
RewriteRule http-bind-jabber/ http://localhost:5280/http-bind/ [P]
</ifModule>
</ifModule>
<ifModule mod_headers.c>
<FilesMatch "\.json$">
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</FilesMatch>
<FilesMatch "\.(js|css|html)$">
Header set Cache-Control "max-age=86400, public, must-revalidate"
</FilesMatch>
<FilesMatch "^FS">
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</FilesMatch>
<FilesMatch "\.(ico|jpe?g|png|gif)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
</ifModule>
<ifModule mod_mime.c>
AddType image/bmp .bmp
AddType text/css .css
AddType image/gif .gif
AddType text/html .htm
AddType text/html .html
AddType image/jpeg .jpg
AddType image/jpeg .jpeg
AddType application/javascript .js
AddType application/json .json
AddType application/x-lua .lua
AddType application/x-shellscript .sh
AddType text/x-c .c
AddType text/x-cplusplus .cpp
AddType text/x-cplusplus .cc
AddType font/opentype .otf
AddType font/opentype .ttf
AddType image/png .png
AddType application/zip .zip
AddType audio/aac .aac
AddType video/mp4 .mp4
AddType audio/mp4 .m4a
AddType audio/mpeg .mp1
AddType audio/mpeg .mp2
AddType audio/mpeg .mp3
AddType audio/mpeg .mpg
AddType audio/mpeg .mpeg
AddType audio/ogg .oga
AddType audio/ogg .ogg
AddType audio/wav .wav
AddType video/webm .webm
AddType video/mp4 .m4v
AddType video/ogg .ogv
AddType video/x-ms-video .avi
AddType video/x-flv .flv
AddType video/x-matroska .mkv
AddType application/x-python .py
AddType text/xml .xml
AddType text/plain .md
AddType text/plain .txt
AddType text/plain .log
AddType text/plain .doc
AddType application/pdf .pdf
AddType application/x-ipkg .ipk
AddType osjs/dbeat .odbeat
AddType osjs/playlist .oplist
AddType osjs/document .odoc
AddType osjs/draw .odraw
AddType osjs/project .oproj
</ifModule>