Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. server {
  2. server_name example.localhost;
  3. root /var/www/example.com/public;
  4. index index.php index.html;
  5. listen 80;
  6.  
  7. include php_biz.conf;
  8. }
  9.  
  10. location / {
  11. if ($arg_v = testing) {
  12. root /var/www/example.com_2/public;
  13. }
  14. try_files $uri $uri/ /index.php;
  15. }
  16.  
  17. location ~ .*.php$ {
  18. try_files $uri =404; # 404 if file doesnt exist
  19. include fastcgi_params;
  20. fastcgi_pass php_biz;
  21. fastcgi_index index.php;
  22. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  23. }
  24. upstream php_biz {
  25. server unix:/run/php/php7.0-fpm-biz.sock;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement