Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. server {
  2. listen 80;
  3. root /var/www/html/nisite;
  4. index index.php index.html index.htm;
  5. server_name www2.company.com wp-newsite-stg-02.company.com;
  6.  
  7. location / {
  8. try_files $uri $uri/ /index.php?$args;
  9. }
  10.  
  11. location ~ .php$ {
  12. fastcgi_split_path_info ^(.+.php)(/.+)$;
  13. fastcgi_index index.php;
  14. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  15. include fastcgi_params;
  16. fastcgi_param PATH_INFO $fastcgi_path_info;
  17. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  18. }
  19.  
  20. # =================================
  21.  
  22. location /office {
  23. root /var/www/html/oldsite;
  24. }
  25.  
  26. }
  27.  
  28. location ^~ /office {
  29. root /var/www/html/oldsite;
  30.  
  31. location ~ .php$ {
  32. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  33. include fastcgi_params;
  34. fastcgi_param SCRIPT_FILENAME $request_filename;
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement