Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. location / {
  2. index index.php
  3. try_files $uri $uri/ /index.php?q=$uri&$args;
  4.  
  5. location ~* /wp-config.php {
  6. deny all;
  7. }
  8.  
  9. location ~ .php$ {
  10. fastcgi_pass 127.0.0.1:9000;
  11. fastcgi_index index.php;
  12. fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/$fastcgi_script_name;
  13. fastcgi_param SCRIPT_FILENAME /usr/share/nginx/wordpress/$fastcgi_script_name;
  14. include /etc/nginx/fastcgi_params;
  15. }
  16. }
  17.  
  18. location / {
  19. try_files $uri $uri/ @wordpress;
  20. }
  21.  
  22. location ~ .php$ {
  23. try_files $uri @wordpress;
  24. fastcgi_index index.php;
  25. fastcgi_split_path_info ^(.+.php)(.*)$;
  26. fastcgi_pass 127.0.0.1:9000;
  27. fastcgi_param SCRIPT_FILENAME /usr/share/nginx/wordpress$fastcgi_script_name;
  28. include fastcgi_params;
  29. }
  30.  
  31. location @wordpress {
  32. fastcgi_index index.php;
  33. fastcgi_split_path_info ^(.+.php)(.*)$;
  34. fastcgi_pass 127.0.0.1:9000;
  35. fastcgi_param SCRIPT_FILENAME /usr/share/nginx/wordpress/index.php;
  36. include fastcgi_params;
  37. }
  38.  
  39. location / {
  40. index index.html index.php;
  41. try_files $uri $uri/ /wordpress/index.php?$args;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement