DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Configuración De Apache Para Redmine

02.02.2010
| 3227 views |
  • submit to reddit
        Fichero: /etc/apache2/conf/redmine.conf

Se usa para establecer las opciones de Apache para Redmine + Passenger


# http://adminsq3.blogspot.com

ServerAdmin  you@yourserver.com
SetEnv RAILS_ENV "production"
SetEnv RAILS_GEM_VERSION "2.3.5"

RewriteEngine On

# Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]

# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]

DocumentRoot /var/www/redmine/public/

<Directory /var/www/redmine/public/>
    Options +FollowSymLinks -MultiViews
    AllowOverride all
    Order allow,deny
    Allow from all
</Directory>

	ErrorLog /var/log/apache2/error.log
	LogLevel warn

# gzip html, css and js
AddOutputFilterByType DEFLATE text/html text/css application/x-javascript application/javascript

# far future expires headers
<FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)?d{10}$">
ExpiresDefault "access plus 10 years"
</FilesMatch>