SHARE
TWEET

stardust_kid

a guest Jun 17th, 2010 94 Never
  1.  
  2. user  redmine;
  3. worker_processes  1;
  4.  
  5. #error_log  logs/error.log;
  6. #error_log  logs/error.log  notice;
  7. #error_log  logs/error.log  info;
  8.  
  9. #pid        logs/nginx.pid;
  10.  
  11.  
  12. events {
  13.     worker_connections  1024;
  14. }
  15.  
  16.  
  17. http {
  18.     passenger_root /opt/passenger-2.2.14;
  19.     passenger_ruby /usr/bin/ruby1.8;
  20.  
  21.     include       mime.types;
  22.     default_type  application/octet-stream;
  23.  
  24.     #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  25.     #                  '$status $body_bytes_sent "$http_referer" '
  26.     #                  '"$http_user_agent" "$http_x_forwarded_for"';
  27.  
  28.     #access_log  logs/access.log  main;
  29.  
  30.     sendfile        on;
  31.     #tcp_nopush     on;
  32.  
  33.     #keepalive_timeout  0;
  34.     keepalive_timeout  65;
  35.  
  36.     #gzip  on;
  37.  
  38.     server {
  39.         listen 8080;
  40.         server_name  localhost;
  41.  
  42.         #charset koi8-r;
  43.  
  44.         #access_log  logs/host.access.log  main;
  45.  
  46.         location / {
  47.             root   html;
  48.             index  index.html index.htm;
  49.         }
  50.  
  51.         #error_page  404              /404.html;
  52.  
  53.         # redirect server error pages to the static page /50x.html
  54.         #
  55.         error_page   500 502 503 504  /50x.html;
  56.         location = /50x.html {
  57.             root   html;
  58.         }
  59.  
  60.         # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  61.         #
  62.         #location ~ \.php$ {
  63.         #    proxy_pass   http://127.0.0.1;
  64.         #}
  65.  
  66.         # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  67.         #
  68.         #location ~ \.php$ {
  69.         #    root           html;
  70.         #    fastcgi_pass   127.0.0.1:9000;
  71.         #    fastcgi_index  index.php;
  72.         #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
  73.         #    include        fastcgi_params;
  74.         #}
  75.  
  76.         # deny access to .htaccess files, if Apache's document root
  77.         # concurs with nginx's one
  78.         #
  79.         #location ~ /\.ht {
  80.         #    deny  all;
  81.         #}
  82.     }
  83.  
  84.  
  85.     # another virtual host using mix of IP-, name-, and port-based configuration
  86.     #
  87. server {
  88.      listen 8080;
  89.      server_name  projects.podberihost.ru;
  90.      root /srv/www/projects.podberihost.ru/redmine/public/;
  91.      access_log /srv/www/projects.podberihost.ru/redmine/log/access.log;
  92.      error_log /srv/www/projects.podberihost.ru/redmine/log/error.log;
  93.      index index.html;
  94.      location / {
  95.         passenger_enabled on;
  96.         allow all;
  97.      }
  98. }
  99.  
  100.  
  101.  
  102.     # HTTPS server
  103.     #
  104.     #server {
  105.     #    listen       443;
  106.     #    server_name  localhost;
  107.  
  108.     #    ssl                  on;
  109.     #    ssl_certificate      cert.pem;
  110.     #    ssl_certificate_key  cert.key;
  111.  
  112.     #    ssl_session_timeout  5m;
  113.  
  114.     #    ssl_protocols  SSLv2 SSLv3 TLSv1;
  115.     #    ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
  116.     #    ssl_prefer_server_ciphers   on;
  117.  
  118.     #    location / {
  119.     #        root   html;
  120.     #        index  index.html index.htm;
  121.     #    }
  122.     #}
  123.  
  124. }
RAW Paste Data
Top