ref: master
debian/apache2/virtualhost.conf
DocumentRoot "/usr/share/noosfero/public"Options +FollowSymLinks -Indexes AllowOverride None Order Allow,Deny Allow from all RewriteEngine On # If your XMPP XMPP/BOSH isn't in localhost, change the config below to correct # point to address RewriteRule /http-bind http://localhost:5280/http-bind [P,QSA,L]Order Allow,Deny Allow from All # Pass access to private files to backend RewriteMap private_files "dbm=sdbm:/usr/share/noosfero/cache/private_files" RewriteCond ${private_files:$1|NOT_FOUND} !NOT_FOUND RewriteRule ^(/articles/.*) ${private_files:$1} [P,QSA,L] # Rewrite index to check for static index.html RewriteRule ^/$ /index.html [QSA] # Rewrite to check for Rails cached page RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^.*$ http://127.0.0.1:50000%{REQUEST_URI} [P,QSA,L]Order Allow,Deny Allow from All ErrorDocument 503 /503.html ErrorLog /var/log/apache2/noosfero.log LogLevel warn CustomLog /var/log/apache2/noosfero.access.log vhost_combined # Compress outgoing text content AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript # Add Expires: header ExpiresActive On ExpiresByType text/css "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/x-icon "access plus 1 month" # vim: ft=apache