summaryrefslogtreecommitdiff
path: root/nginx.conf
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-03-30 14:56:53 +0200
committerAndreas Maunz <andreas@maunz.de>2011-03-30 14:56:53 +0200
commit12f42b70b451254f2865a379c1bb1d2ab964e9ff (patch)
tree72da9dc0f3b6d6b67fcc69a092c0bc41e81cc877 /nginx.conf
parent5ae9365231ce0727d28e589bfc2b9d0aeee6ceaa (diff)
opentox-ruby
Diffstat (limited to 'nginx.conf')
-rw-r--r--nginx.conf11
1 files changed, 7 insertions, 4 deletions
diff --git a/nginx.conf b/nginx.conf
index e6cb438..8ce1591 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -1,3 +1,4 @@
+#user ist;
worker_processes 10;
events {
@@ -7,6 +8,7 @@ events {
http {
server_names_hash_bucket_size 256;
+ include /home/ist/nginx/conf/mime.types;
passenger_root RUBY_DEST/lib/ruby/gems/1.8/gems/PASSENGER;
passenger_ruby RUBY_DEST/bin/ruby;
@@ -15,7 +17,7 @@ http {
passenger_spawn_method conservative;
#passenger_use_global_queue on;
- include mime.types;
+ include NGINX_DEST/mime.types;
default_type application/octet-stream;
sendfile on;
@@ -26,9 +28,10 @@ http {
listen 80;
client_max_body_size 5000m;
server_name SERVERNAME;
- root /var/www/;
-
- passenger_enabled on;
+ location / {
+ root WWW_DEST;
+ passenger_enabled on;
+ }
passenger_base_uri /compound;
passenger_base_uri /dataset;
passenger_base_uri /algorithm;