Advertisement
Shiny_

nginx conf

May 7th, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. worker_processes 1;
  2. pid logs/nginx.pid;
  3. events {
  4. worker_connections 1024;
  5. }
  6.  
  7.  
  8. http {
  9. passenger_root /root/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/passenger-4.0.42;
  10. passenger_ruby /root/.rbenv/versions/2.0.0-p0/bin/ruby;
  11.  
  12. include mime.types;
  13. default_type application/octet-stream;
  14.  
  15. #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  16. # '$status $body_bytes_sent "$http_referer" '
  17. # '"$http_user_agent" "$http_x_forwarded_for"';
  18.  
  19. #access_log logs/access.log main;
  20.  
  21. sendfile on;
  22. #tcp_nopush on;
  23.  
  24. #keepalive_timeout 0;
  25. keepalive_timeout 65;
  26.  
  27. #gzip on;
  28.  
  29. server {
  30. listen 80;
  31. server_name alldev.eu www.alldev.eu riv-sa.com www.riv-sa.com;
  32. passenger_enabled on;
  33. rails_env production;
  34.  
  35. root /var/www/html/riv-sa.com/public;
  36. #autoindex on;
  37.  
  38. #charset koi8-r;
  39.  
  40. #access_log logs/host.access.log main;
  41.  
  42. location / {
  43. root /var/www/html/riv-sa.com/public;
  44. }
  45.  
  46. error_page 404 /var/www/html/riv-sa.com/public/404.html;
  47.  
  48. # redirect server error pages to the static page /50x.html
  49. #
  50. error_page 500 502 503 504 /500.html;
  51.  
  52. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  53. #
  54. #location ~ \.php$ {
  55. # proxy_pass http://127.0.0.1;
  56. #}
  57.  
  58. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  59. #
  60. #location ~ \.php$ {
  61. # root html;
  62. # fastcgi_pass 127.0.0.1:9000;
  63. # fastcgi_index index.php;
  64. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  65. # include fastcgi_params;
  66. #}
  67.  
  68. # deny access to .htaccess files, if Apache's document root
  69. # concurs with nginx's one
  70. #
  71. #location ~ /\.ht {
  72. # deny all;
  73. #}
  74. }
  75.  
  76.  
  77. # another virtual host using mix of IP-, name-, and port-based configuration
  78. #
  79. #server {
  80. # listen 8000;
  81. # listen somename:8080;
  82. # server_name somename alias another.alias;
  83.  
  84. # location / {
  85. # root html;
  86. # index index.html index.htm;
  87. # }
  88. #}
  89.  
  90.  
  91. # HTTPS server
  92. #
  93. #server {
  94. # listen 443 ssl;
  95. # server_name localhost;
  96.  
  97. # ssl_certificate cert.pem;
  98. # ssl_certificate_key cert.key;
  99.  
  100. # ssl_session_cache shared:SSL:1m;
  101. # ssl_session_timeout 5m;
  102.  
  103. # ssl_ciphers HIGH:!aNULL:!MD5;
  104. # ssl_prefer_server_ciphers on;
  105.  
  106. # location / {
  107. # root html;
  108. # index index.html index.htm;
  109. # }
  110. #}
  111.  
  112. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement