Commit 72b08d63 authored by totten's avatar totten Committed by Aegir user

nginx-custom.conf - Prepare for Symfony version of /extdir

parent 6eef4da1
......@@ -36,3 +36,30 @@ location ^~ /civicrm/contact/imagefile {
try_files $uri @drupal;
}
###########################################################
# Re-route /extdir/* to Symfony app
set $symfonyRoot /var/www/extdir/web;
set $symfonyScript app.php;
location /extdir-symfony/ {
root $symfonyRoot;
rewrite ^/extdir-symfony/(.*)$ /$1 break;
try_files $uri @symfonyFront;
}
## TODO: Uncomment this once we have the app working
#location /extdir/ {
# root $symfonyRoot;
# rewrite ^/extdir/(.*)$ /$1 break;
# try_files $uri @symfonyFront;
#}
location @symfonyFront {
#x fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $symfonyRoot/$symfonyScript;
fastcgi_param SCRIPT_NAME /extdir/$symfonyScript;
fastcgi_param REQUEST_URI /extdir$uri?$args;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment