Guest User

Untitled

a guest
Feb 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. user guillermo;
  2. worker_processes 1;
  3.  
  4.  
  5. events {
  6. worker_connections 1024;
  7. }
  8.  
  9.  
  10. http {
  11. include mime.types;
  12. default_type application/octet-stream;
  13.  
  14. sendfile on;
  15.  
  16. keepalive_timeout 65;
  17. server {
  18. listen 80;
  19. server_name localhost.localdomain;
  20. access_log logs/site.access.log;
  21. error_page 404 = /wordpress/index.php?q=$request_uri;
  22. location ~ \.php$ {
  23. fastcgi_pass localhost:8333;
  24. fastcgi_index index.php;
  25. fastcgi_param SCRIPT_FILENAME /home/guillermo/web/wordpress$fastcgi_script_name; # same path as above
  26.  
  27. fastcgi_param QUERY_STRING $query_string;
  28. fastcgi_param REQUEST_METHOD $request_method;
  29. fastcgi_param CONTENT_TYPE $content_type;
  30. fastcgi_param CONTENT_LENGTH $content_length;
  31.  
  32. fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  33. fastcgi_param REQUEST_URI $request_uri;
  34. fastcgi_param DOCUMENT_URI $document_uri;
  35. fastcgi_param DOCUMENT_ROOT $document_root;
  36. fastcgi_param SERVER_PROTOCOL $server_protocol;
  37.  
  38. fastcgi_param GATEWAY_INTERFACE CGI/1.1;
  39. fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
  40.  
  41. fastcgi_param REMOTE_ADDR $remote_addr;
  42. fastcgi_param REMOTE_PORT $remote_port;
  43. fastcgi_param SERVER_ADDR $server_addr;
  44. fastcgi_param SERVER_PORT $server_port;
  45. fastcgi_param SERVER_NAME $server_name;
  46. }
  47. }
  48. }
Add Comment
Please, Sign In to add comment