Hey guys!
I have migrated a Flow Application from Apache to Nginx Server. On the old Apache everything worked correctly.
See my default configuration on bottom.
Flow gives the following Image (wrong):
http://bit.ly/2CMs5XO
This works:
http://bit.ly/2Ebnf2N
The difference is that Flow appends the filename of the referenced file.
My nginx config:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
# root /usr/share/nginx/html/Web;
root /var/www/site/Web;
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location /_Resources/ {
access_log off;
log_not_found off;
expires max;
break;
}
fastcgi_param FLOW_CONTEXT Development;
fastcgi_param FLOW_REWRITEURLS 1;
location / {
index index.php index.html index.htm;
try_files $uri $uri/ /index.php$is_args$args;
location ~ ^(.*)\.php$ {
try_files $uri = 404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param FLOW_REWRITEURLS 1;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
#fastcgi_param DOCUMENT_ROOT $realpath_root;
#fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_read_timeout 300000;
}
}
}
Can you help me?
Thx, Pat