Advertisement
Guest User

Untitled

a guest
Feb 25th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1.  
  2. user nobody;
  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 /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11;
  19. passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.3-p125/ruby;
  20. #passenger_debug_log_file logs/passenger.log;
  21.  
  22. include mime.types;
  23. default_type application/octet-stream;
  24.  
  25. sendfile on;
  26.  
  27. keepalive_timeout 65;
  28.  
  29. server {
  30. listen 80;
  31. server_name mydomain.com www.mydomain.com;
  32. root /var/www/mydomain.com/public;
  33. passenger_enabled on;
  34. rails_env development;
  35. #rails_env production;
  36. }
  37.  
  38.  
  39.  
  40.  
  41. server {
  42. listen 80;
  43. server_name localhost;
  44.  
  45. #charset koi8-r;
  46.  
  47. #access_log logs/host.access.log main;
  48.  
  49. location / {
  50. root html;
  51. index index.html index.htm;
  52. }
  53.  
  54. #error_page 404 /404.html;
  55.  
  56. # redirect server error pages to the static page /50x.html
  57. #
  58. error_page 500 502 503 504 /50x.html;
  59. location = /50x.html {
  60. root html;
  61. }
  62.  
  63. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  64. #
  65. #location ~ \.php$ {
  66. # proxy_pass http://127.0.0.1;
  67. #}
  68.  
  69. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  70. #
  71. #location ~ \.php$ {
  72. # root html;
  73. # fastcgi_pass 127.0.0.1:9000;
  74. # fastcgi_index index.php;
  75. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  76. # include fastcgi_params;
  77. #}
  78.  
  79. # deny access to .htaccess files, if Apache's document root
  80. # concurs with nginx's one
  81. #
  82. #location ~ /\.ht {
  83. # deny all;
  84. #}
  85. }
  86.  
  87.  
  88. # another virtual host using mix of IP-, name-, and port-based configuration
  89. #
  90. #server {
  91. # listen 8000;
  92. # listen somename:8080;
  93. # server_name somename alias another.alias;
  94.  
  95. # location / {
  96. # root html;
  97. # index index.html index.htm;
  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 HIGH:!aNULL:!MD5;
  116. # ssl_prefer_server_ciphers on;
  117.  
  118. # location / {
  119. # root html;
  120. # index index.html index.htm;
  121. # }
  122. #}
  123.  
  124. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement