Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name example.localhost;
- root /var/www/example.com/public;
- index index.php index.html;
- listen 80;
- include php_biz.conf;
- }
- location / {
- if ($arg_v = testing) {
- root /var/www/example.com_2/public;
- }
- try_files $uri $uri/ /index.php;
- }
- location ~ .*.php$ {
- try_files $uri =404; # 404 if file doesnt exist
- include fastcgi_params;
- fastcgi_pass php_biz;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- upstream php_biz {
- server unix:/run/php/php7.0-fpm-biz.sock;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement