edavis10 (owner)

Revisions

gist: 189206 Download_button fork
public
Public Clone URL: git://gist.github.com/189206.git
Embed All Files: show embed
redmine_passenger.conf #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<VirtualHost *:80>
  ServerName projects.littlestreamsoftware.com
 
  RewriteEngine On
 
  # Redirect any non HTTPS requests to the HTTPS server
  RewriteCond %{HTTP_HOST} ^projects.littlestreamsoftware.com$ [NC]
  RewriteRule ^(.*)$ https://projects.littlestreamsoftware.com$1 [R=301,L]
 
  Include /etc/apache2/common/hide-svn
  Include /etc/apache2/common/deflate
 
</VirtualHost>
 
NameVirtualHost *:443
<VirtualHost *:443>
  SSLEngine on
# Self-signed
# SSLCertificateFile /etc/apache2/apache.pem
 
  SSLCertificateFile /etc/apache2/ssl/2009/projects.littlestreamsoftware.com.crt
  SSLCertificateKeyFile /etc/apache2/ssl/2009/projects.littlestreamsoftware.com.key
  # this is only needed for GoDaddy certificates
  SSLCertificateChainFile /etc/apache2/ssl/2009/gd_bundle.crt
 
  RequestHeader set X_FORWARDED_PROTO 'https'
  ServerAdmin webmaster@localhost
  RewriteEngine On
 
## Bit faster by storing the Rails Framework in memory but not needed at this scale
# RailsSpawnMethod smart
  RailsAppSpawnerIdleTime 0
 
  DocumentRoot /home/websites/projects.littlestreamsoftware.com/current/public
  <Directory "/home/websites/projects.littlestreamsoftware.com/current/public">
    Options FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory>
 
  # Uncomment for rewrite debugging
# RewriteLog /tmp/myapp_rewrite_log
# RewriteLogLevel 9
 
  # Check for maintenance file and redirect all requests
  RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
  RewriteCond %{SCRIPT_FILENAME} !maintenance.html
  RewriteRule ^.*$ /system/maintenance.html [L]
 
  # Rewrite index to check for static
  RewriteRule ^/$ /cache/index.html [QSA]
 
  # Rewrite to check for Rails cached page
  RewriteRule ^([^.]+)$ /cache/$1.html [QSA]
 
 
  ErrorLog /var/log/apache2/error.log
 
  CustomLog /var/log/apache2/admin-access.log combined
  ServerSignature Off
 
  Include /etc/apache2/common/hide-svn
  Include /etc/apache2/common/deflate
 
</VirtualHost>