Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. root /var/www/html/wordpress;
  5. index index.php index.html index.htm;
  6. server_name example.com www.example.com;
  7.  
  8. location / {
  9. try_files $uri $uri/ /index.php?$args;
  10. }
  11.  
  12. location ~ \.php$ {
  13. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  14. fastcgi_index index.php;
  15. fastcgi_pass unix:/var/run/php/php7.1-fpm.sock; #Ubuntu 17.10
  16. # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; #Ubuntu 17.04
  17. include fastcgi_params;
  18. fastcgi_param PATH_INFO $fastcgi_path_info;
  19. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement