Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. server {
  2. listen 443 ssl;
  3. listen [::]:443 ssl;
  4. server_name wordpress.*;
  5. add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
  6. include /config/nginx/ssl.conf;
  7. root /config/www/wordpress;
  8. client_max_body_size 5m;
  9. client_body_timeout 60;
  10. location / {
  11. try_files $uri $uri/ @rewrite;
  12. }
  13. location @rewrite {
  14. rewrite ^/(.*)$ /index.php?title=$1&$args;
  15. }
  16. # location ^~ /maintenance/ {
  17. # return 403;
  18. # }
  19. location ~ \.php$ {
  20. fastcgi_pass 127.0.0.1:9000;
  21. fastcgi_index index.php;
  22. include /etc/nginx/fastcgi_params;
  23. }
  24. location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  25. try_files $uri /index.php;
  26. expires max;
  27. log_not_found off;
  28. }
  29. location = /_.gif {
  30. expires max;
  31. empty_gif;
  32. }
  33. location ^~ /cache/ {
  34. deny all;
  35. }
  36. location /dumps {
  37. root /config/www/wordpress/local;
  38. autoindex on;
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement