aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/general.yml-example4
-rw-r--r--config/httpd.conf4
-rw-r--r--config/routes.rb1
3 files changed, 7 insertions, 2 deletions
diff --git a/config/general.yml-example b/config/general.yml-example
index fb2afd336..9db95c4d0 100644
--- a/config/general.yml-example
+++ b/config/general.yml-example
@@ -64,7 +64,7 @@ RAW_EMAILS_LOCATION: 'files/raw_emails'
# If not specified, it will default to the path to the admin controller,
# which is usually what you want. It is useful in situations where admin
# requests are proxied via a secure server, for example.
-# ADMIN_BASE_URL: '/admin/'
+ADMIN_BASE_URL: ''
# Where /stylesheets sits under for admin pages. See asset_host in
# config/environment.rb. Can be full domain or relative path (not an
@@ -92,4 +92,4 @@ RECAPTCHA_PRIVATE_KEY: 'x'
# request (Linux only). Since Ruby never returns memory to the OS, if the
# existing process previously served a larger request, this won't
# show any consumption for the later request.
-DEBUG_RECORD_MEMORY: false \ No newline at end of file
+DEBUG_RECORD_MEMORY: false
diff --git a/config/httpd.conf b/config/httpd.conf
index bf8c3bd33..d5e86478a 100644
--- a/config/httpd.conf
+++ b/config/httpd.conf
@@ -32,3 +32,7 @@ RequestHeader add X-Forwarded-User %{RU}e
# files for archiving.
RewriteRule /files/(.+) http://files.whatdotheyknow.com/$1
+<IfModule mod_passenger.c>
+ # Set this to something like 100 if you have memory leak issues
+ PassengerMaxRequests 0
+</IfModule> \ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index 0747797d7..7da279002 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -39,6 +39,7 @@ ActionController::Routing::Routes.draw do |map|
request.new_request_to_body '/new/:url_name', :action => 'new'
request.show_request '/request/:url_title.:format', :action => 'show'
+ request.show_new_request '/request/:url_title/new', :action => 'show'
request.details_request '/details/request/:url_title', :action => 'details'
request.similar_request '/similar/request/:url_title', :action => 'similar'