Guest User

Untitled

a guest
Feb 29th, 2012
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1.  
  2. user angusiguess;
  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/lib/ruby/gems/1.9.1/gems/passenger-3.0.11;
  19. passenger_ruby /usr/bin/ruby;
  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. upstream php {
  39. server 127.0.0.1:9000;
  40. }
  41.  
  42. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  43. #
  44. #location ~ \.php$ {
  45. # proxy_pass http://127.0.0.1;
  46. #}
  47.  
  48. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  49. #
  50. #location ~ \.php$ {
  51. # root html;
  52. # fastcgi_pass 127.0.0.1:9000;
  53. # fastcgi_index index.php;
  54. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  55. # include fastcgi_params;
  56. #}
  57.  
  58. # deny access to .htaccess files, if Apache's document root
  59. # concurs with nginx's one
  60. #
  61. #location ~ /\.ht {
  62. # deny all;
  63. #}
  64.  
  65.  
  66. # another virtual host using mix of IP-, name-, and port-based configuration
  67. #
  68. #server {
  69. # listen 8000;
  70. # listen somename:8080;
  71. # server_name somename alias another.alias;
  72.  
  73. # location / {
  74. # root html;
  75. # index index.html index.htm;
  76. # }
  77. #}
  78. #The server for whoishiring
  79. server {
  80. listen 80;
  81. server_name x;
  82. root /www/whoishiring/public;
  83. passenger_enabled on;
  84. rails_env development;
  85. }
  86.  
  87. server {
  88. listen 80;
  89. server_name x;
  90. root /srv/http/wordpress;
  91. index index.php;
  92.  
  93. location = /favicon.ico {
  94. log_not_found off;
  95. access_log off;
  96. }
  97.  
  98. location = /robots.txt {
  99. allow all;
  100. log_not_found off;
  101. access_log off;
  102. }
  103.  
  104. location / {
  105. try_files $uri $uri/ /index.php;
  106. }
  107.  
  108. location ~ \.php$ {
  109. include fastcgi.conf;
  110. fastcgi_intercept_errors on;
  111. fastcgi_pass localhost:9000;
  112. }
  113.  
  114. location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  115. expires max;
  116. log_not_found off;
  117. }
  118. }
  119.  
  120. server {
  121. listen 80;
  122. server_name x;
  123. root /srv/http/ishy;
  124. index index.html;
  125. }
  126.  
  127. # HTTPS server
  128. #
  129. #server {
  130. # listen 443;
  131. # server_name localhost;
  132.  
  133. # ssl on;
  134. # ssl_certificate cert.pem;
  135. # ssl_certificate_key cert.key;
  136.  
  137. # ssl_session_timeout 5m;
  138.  
  139. # ssl_protocols SSLv2 SSLv3 TLSv1;
  140. # ssl_ciphers HIGH:!aNULL:!MD5;
  141. # ssl_prefer_server_ciphers on;
  142.  
  143. # location / {
  144. # root html;
  145. # index index.html index.htm;
  146. # }
  147. #}
  148.  
  149. }
Advertisement
Add Comment
Please, Sign In to add comment