3 ServerAdmin webmaster@localhost
5 DocumentRoot /var/www/depot.njae.me.uk/current/public
6 ServerName depot.njae.me.uk
8 # SetEnv RAILS_ENV production
11 # Options FollowSymLinks
15 # <Directory /var/www/>
16 # Options FollowSymLinks MultiViews
20 # # Uncomment this directive is you want to see apache2's
21 # # default start page (in /apache2-default) when you go to /
22 # #RedirectMatch ^/$ /apache2-default/
25 # <Directory /var/www/depot.njae.me.uk/current/public>
26 # # General Apache options
27 # Options +FollowSymLinks +ExecCGI
32 # AuthName "Depot site"
34 # AuthUserFile /etc/apache2/depot.njae.me.uk.passwd
43 # <Proxy balancer://mongrel_cluster>
44 # BalancerMember http://127.0.0.1:3000
45 # BalancerMember http://127.0.0.1:3001
46 # BalancerMember http://127.0.0.1:3002
50 # If you don't want Rails to look in certain directories,
51 # use the following rewrite rules so that Apache won't rewrite certain requests
54 # RewriteCond %{REQUEST_URI} ^/notrails.*
55 # RewriteRule .* - [L]
57 # Redirect all requests not available on the filesystem to Rails
58 # By default the cgi dispatcher is used which is very slow
60 # For better performance replace the dispatcher with the fastcgi one
63 # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
64 # If your Rails application is accessed via an Alias directive,
65 # then you MUST also set the RewriteBase in this htaccess file.
68 # Alias /myrailsapp /path/to/myrailsapp/public
69 # RewriteBase /myrailsapp
71 # If the system maintenance page exists, serve that instead of any other page
72 RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
73 RewriteCond %{SCRIPT_FILENAME} !maintenance.html
74 RewriteRule ^.*$ /system/maintenance.html [L]
76 # # Rewrite rule to check for the index page: Apache serves this directly
77 # RewriteRule ^/$ /index.html [QSA]
79 # # Rewrite rule for static pages: Apache serves these direclty
80 # RewriteRule ^([^.]+)$ $1.html [QSA]
82 # ## If not other rule matches, pass the request to Rails
83 # # RewriteCond %{REQUEST_FILENAME} !-f
84 # # RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
85 # ## RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
87 # # If no other rules match, pass the request to the Mongrel cluster
88 # # Redirect all non-static requests to cluster
89 # RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
90 # RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]
93 # ## Deflate served pages to improve speed over the network
94 # #AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css
95 # #BrowserMatch ^Mozilla/4 gzip-only-text/html
96 # #BrowserMatch ^Mozilla/4\.0[678] no-gzip
97 # #BrowserMatch \\bMSIE !no-gzip !gzip-only-text/html
99 # ## Uncomment for deflate debugging
100 # #DeflateFilterNote Input input_info
101 # #DeflateFilterNote Output output_info
102 # #DeflateFilterNote Ratio ratio_info
103 # #LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
104 # #CustomLog /var/log/apache2/depot_deflate.log deflate
107 # In case Rails experiences terminal errors
108 # Instead of displaying this message you can supply a file here which will be rendered instead
111 # ErrorDocument 500 /500.html
113 ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
115 # this not only blocks access to .svn directories, but makes it appear
116 # as though they aren't even there, not just that they are forbidden
117 <DirectoryMatch "^/.*/\.svn/">
118 ErrorDocument 403 /404.html
124 ErrorLog /var/log/apache2/error.log
126 # Possible values include: debug, info, notice, warn, error, crit,
130 CustomLog /var/log/apache2/access.log combined