48 lines
1.8 KiB
ApacheConf
Executable File
48 lines
1.8 KiB
ApacheConf
Executable File
# Example .htaccess for apache webservers.
|
|
|
|
# Uncomment the following three lines if you want your webapp to force HTTPS
|
|
# RewriteEngine On
|
|
# RewriteCond %{HTTPS} off
|
|
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
|
|
|
|
# Pass pathinfo and query string to the index script
|
|
AcceptPathInfo on
|
|
RewriteEngine On
|
|
|
|
# If the installation is in a subdirectory, add a rewritebase rule for the subdir
|
|
# RewriteBase /subdir/
|
|
RewriteBase /orb/
|
|
|
|
RewriteCond %{REQUEST_URI} !^/orb/(templates|media|docs|ckeditor|images|data|index.cgi)
|
|
RewriteRule (.*) index.cgi/$1 [PT,L]
|
|
|
|
# Compress text, html, javascript, css, xml:
|
|
AddOutputFilterByType DEFLATE text/plain
|
|
AddOutputFilterByType DEFLATE text/html
|
|
AddOutputFilterByType DEFLATE text/xml
|
|
AddOutputFilterByType DEFLATE text/css
|
|
AddOutputFilterByType DEFLATE application/xml
|
|
AddOutputFilterByType DEFLATE application/xhtml+xml
|
|
AddOutputFilterByType DEFLATE application/rss+xml
|
|
AddOutputFilterByType DEFLATE application/javascript
|
|
AddOutputFilterByType DEFLATE application/x-javascript
|
|
|
|
# For extra efficiency, make sure cache expiration times are set for content.
|
|
# For example, add the following to the webapp's <VirtualHost>:
|
|
#
|
|
# ExpiresActive On
|
|
# ExpiresDefault "access plus 300 seconds"
|
|
#
|
|
# And the followin on its <Directory>:
|
|
#
|
|
# ExpiresByType text/html "access plus 30 minutes"
|
|
# ExpiresByType text/css "access plus 1 day"
|
|
# ExpiresByType text/javascript "access plus 1 day"
|
|
# ExpiresByType image/gif "access plus 1 month"
|
|
# ExpiresByType image/jpeg "access plus 1 month"
|
|
# ExpiresByType image/jpg "access plus 1 month"
|
|
# ExpiresByType image/png "access plus 1 month"
|
|
# ExpiresByType application/x-shockwave-flash "access plus 1 day"
|
|
# ExpiresByType application/x-javascript "access plus 1 day"
|
|
# ExpiresByType application/x-icon "access plus 1 day"
|