Advertisement
Guest User

Untitled

a guest
Mar 20th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. user www-data;
  2. worker_processes 4;
  3. pid /var/run/nginx.pid;
  4.  
  5. events {
  6. worker_connections 1024;
  7. # multi_accept on;
  8. }
  9.  
  10.  
  11. http {
  12. ##
  13. # Basic Settings
  14. ##
  15.  
  16. sendfile on;
  17. tcp_nopush on;
  18. tcp_nodelay on;
  19. keepalive_timeout 2;
  20. types_hash_max_size 2048;
  21. # server_tokens off;
  22.  
  23. # server_names_hash_bucket_size 64;
  24. # server_name_in_redirect off;
  25.  
  26. include /etc/nginx/mime.types;
  27. default_type application/octet-stream;
  28.  
  29. #access_log /var/log/nginx/access.log;
  30. error_log /var/log/nginx/error.log;
  31. access_log off;
  32.  
  33. gzip on;
  34. gzip_disable "msie6";
  35. gzip_vary on;
  36. gzip_proxied any;
  37. gzip_comp_level 6;
  38. gzip_buffers 16 8k;
  39. gzip_http_version 1.1;
  40. gzip_types text/html text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  41.  
  42. ##
  43. # Virtual Host Configs
  44. ##
  45. index index.php;
  46. ## See here: http://wiki.nginx.org/WordPress
  47.  
  48. server {
  49. ## Your IP number goes here:
  50. listen 198.147.22.194;
  51.  
  52. ## Your only path reference.
  53. root /var/www/c9daynight.tk;
  54.  
  55. location = /favicon.ico {
  56. log_not_found off;
  57. access_log off;
  58. }
  59.  
  60. location = /robots.txt {
  61. allow all;
  62. log_not_found off;
  63. access_log off;
  64. }
  65.  
  66. location / {
  67. # This is cool because no php is touched for static content
  68. try_files $uri $uri/ /index.php;
  69. }
  70.  
  71. location ~ \.php$ {
  72. fastcgi_pass 127.0.0.1:9000;
  73. fastcgi_index index.php;
  74. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  75. include fastcgi_params;
  76. }
  77.  
  78. location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  79. expires max;
  80. log_not_found off;
  81. }
  82.  
  83. }
  84.  
  85. server {
  86. server_name www.c9daynight.tk;
  87. return 301 http://c9daynight.tk$request_uri;
  88. }
  89.  
  90. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement