I've got it all working OK apart from the wysiwyg's plugins. I can open the wysiwyg to add text and save it fine, but when I click on the icon to insert an image I get a pop up window with this URL:
<mydomain>/__fudge/wysiwyg/plugins/matrix_insert_image/insert_image_frames.php?f_imageid=0&f_align=&f_width=&f_height=&f_alt=&f_title=&f_longdesc=&f_horiz=&f_vert=&f_border=0&f_image_class=&f_image_id=&editor_name=bodycopy_194_content_type_wysiwyg_211&in_popup=0
(Looks the same as one I have with Apache that works)
BUT... in the pop up window it just says:
File not found.
Same goes for other insert stuff like the embed video. The files are definitely there and I can access them on the Linux command line. File permissions and locations are same as on another live box running Matrix (with Apache not nginx) that works fine.
I think it might be my nginx config? (based on http://forums.squizsuite.net/index.php?showtopic=5212) :
server {
listen 80;
root /var/www/squiz_matrix/core/web;
# Logging
access_log /var/log/nginx/mysite.access.log;
error_log /var/log/nginx/mysite.error.log;
# Save the original script URI in a variable before we rewrite it (we need to
# pass the original URI onto FastCGI later for Matrix's sake).
#
set $orig_uri $uri;
location / {
index index.php;
# Rewrite ALL requests to Matrix's index.php file
rewrite ^(.*)$ /index.php last;
}
# access_log off; prevents logging of these hits to the access log (you may or may not want this)
location /__data/ { alias /var/www/squiz_matrix/data/public/; }
location /__lib/ { access_log off; alias /var/www/squiz_matrix/core/lib/; }
location /__fudge/ {
access_log off;
alias /var/www/squiz_matrix/fudge/;
}
location ~ .php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/squiz_matrix/core/web/$fastcgi_script_name;
# Modified for Matrix
fastcgi_param PHP_SELF $request_uri;
fastcgi_param PATH_INFO $orig_uri;
fastcgi_param SCRIPT_NAME $orig_uri;
# Some defaults
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
include fastcgi_params;
}
}
The fudge bit in red might be missing something? Apart from that it all seems to work great.
Any help appreciated.