Advertisement
arieonline

/etc/nginx/nginx.conf

May 30th, 2011
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. worker_processes 8;
  2.  
  3. events {
  4. worker_connections 1024;
  5. }
  6.  
  7.  
  8. http {
  9. include mime.types;
  10. default_type application/octet-stream;
  11.  
  12. sendfile on;
  13.  
  14. keepalive_timeout 60;
  15. keepalive_requests 1000;
  16.  
  17. gzip on;
  18. gzip_comp_level 9;
  19. gzip_http_version 1.0;
  20. gzip_min_length 1024;
  21. gzip_types text/plain text/css image/x-icon application/x-javascript;
  22. gzip_vary on;
  23.  
  24. server {
  25. listen 80;
  26. server_name localhost;
  27.  
  28. location / {
  29. root html;
  30. index index.html index.htm;
  31. }
  32.  
  33. error_page 500 502 503 504 /50x.html;
  34.  
  35. location = /50x.html {
  36. root html;
  37. }
  38. }
  39.  
  40. server {
  41. listen 80;
  42. server_name loaded.ipb.ac.id *.loaded.ipb.ac.id;
  43. access_log /var/log/nginx/loaded.ipb.ac.id-access.log;
  44. error_log /var/log/nginx/loaded.ipb.ac.id-error.log error;
  45.  
  46. location ~ /\.ht {
  47. deny all;
  48. }
  49.  
  50. location ~ \.php$ {
  51. include proxy.conf;
  52. }
  53.  
  54. location / {
  55. root /home/loaded/public_html;
  56. index index.php index.html index.htm;
  57. try_files $uri $uri/ /index.php;
  58. autoindex on;
  59. }
  60. }
  61.  
  62. server {
  63. listen 80;
  64. server_name tropedu.ipb.ac.id *.tropedu.ipb.ac.id;
  65. access_log /var/log/nginx/tropedu.ipb.ac.id-access.log;
  66. error_log /var/log/nginx/tropedu.ipb.ac.id-error.log error;
  67.  
  68. location ~ /\.ht {
  69. deny all;
  70. }
  71.  
  72. location ~ \.php$ {
  73. include proxy.conf;
  74. }
  75.  
  76. location / {
  77. root /home/tropedu/public_html;
  78. index index.php index.html index.htm;
  79. try_files $uri $uri/ /index.php;
  80. autoindex on;
  81. }
  82. }
  83.  
  84. server {
  85. listen 80;
  86. server_name gugaltika-ipb.org *.gugaltika-ipb.org;
  87. access_log /var/log/nginx/gugaltika-ipb.org-access.log;
  88. error_log /var/log/nginx/gugaltika-ipb.org-error.log error;
  89.  
  90. location ~ /\.ht {
  91. deny all;
  92. }
  93.  
  94. location ~ \.php$ {
  95. include proxy.conf;
  96. }
  97.  
  98. location / {
  99. root /home/gugaltika/public_html;
  100. index index.php index.html index.htm;
  101. try_files $uri $uri/ /index.php;
  102. autoindex on;
  103. }
  104.  
  105. }
  106.  
  107. server {
  108. listen 80;
  109. server_name blogasik.com *.blogasik.com;
  110. access_log /var/log/nginx/blogasik.com-access.log;
  111. error_log /var/log/nginx/blogasik.com-error.log error;
  112.  
  113. location ~ /\.ht {
  114. deny all;
  115. }
  116.  
  117. location ~ \.php$ {
  118. include proxy.conf;
  119. }
  120.  
  121. location / {
  122. root /home/blogasik/public_html;
  123. index index.php index.html index.htm;
  124. try_files $uri $uri/ /index.php;
  125. }
  126. }
  127.  
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement