Guest User

Untitled

a guest
Feb 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. user www-data www-data;
  2. worker_processes 4;
  3.  
  4. events {
  5. worker_connections 1024;
  6. use epoll;
  7. }
  8.  
  9.  
  10. http {
  11. include mime.types;
  12. default_type application/octet-stream;
  13.  
  14. log_format main '$remote_addr - $remote_user [$time_local] $request '
  15. '"$status" $body_bytes_sent "$http_referer" '
  16. '"$http_user_agent" "$http_x_forwarded_for"';
  17.  
  18. sendfile on;
  19. tcp_nopush on;
  20. tcp_nodelay off;
  21. #keepalive_timeout 0;
  22. keepalive_timeout 5;
  23.  
  24. gzip on;
  25. gzip_comp_level 2;
  26. gzip_proxied any;
  27. gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  28.  
  29. server {
  30. listen 81;
  31. server_name tv.winelibrary.com localhost 65.125.57.202
  32.  
  33. access_log /var/log/nginx/wltv.access.log main;
  34. error_log /var/log/nginx/wltv.error.log;
  35.  
  36. location / {
  37. port_in_redirect off;
  38. root /var/www/wltv;
  39. index index.php index.html index.htm;
  40. if (-f $request_filename) {
  41. break;
  42. }
  43. if (-d $request_filename) {
  44. break;
  45. }
  46. if (!-e $request_filename) {
  47. rewrite ^(.+)$ /index.php?q=$1 last;
  48. }
  49. #rewrite ^(.+)$ /index.php?q=$1 last;
  50.  
  51.  
  52. # Enable nice permalinks for WordPress: (as per Yawn.it)
  53. #error_page 404 = //index.php?q=$uri;
  54. }
  55.  
  56.  
  57. location ~ \.php$ {
  58. # root html;
  59. fastcgi_pass 127.0.0.1:9000;
  60. fastcgi_index index.php;
  61. fastcgi_param SCRIPT_FILENAME /var/www/wltv$fastcgi_script_name;
  62. include fastcgi_params;
  63. }
  64.  
  65. # deny access to .htaccess files, if Apache's document root
  66. # concurs with nginx's one
  67. #
  68. location ~ /\.ht {
  69. deny all;
  70. }
  71. }
  72.  
  73. }
Add Comment
Please, Sign In to add comment