demo not working :(
amanu opened this issue · comments
demo at http://resque.neetcafe.com/ not working :(.
regards.
In the process of moving to another server
Half working now, still need to fix something to make it works with Nginx
Fixed
Any certain options that needs to be taken into consideration when running on nginx?
Having some issues running it on nginx+php-fpm (PHP 5.5).
Add these lines to your site nginx conf:
location / {
try_files $uri /index.php?$args;
}
location /index.php {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
fastcgi_pass php;
}
This works for me
server {
listen 80;
server_name resqueboard;
root /var/www/resqueboard/src/ResqueBoard/webroot;
index index.php;
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param APP_ENV staging;
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 SCRIPT_FILENAME /var/www/resqueboard/src/ResqueBoard/webroot$fastcgi_script_name;
include fastcgi.conf;
}
}