我试图让本地主机上的Debian Jessie系统上运行的Zurmo CRM。 我无法find一个例子nginxconfiguration和应用程序需要重写URLS,我做错了。
我也使用重写在Drupal,我认为这是Nginxconfiguration将工作,但没有运气。
server { server_name zurmo; listen 80; root /var/www/sites/zurmo; index index.php; location = / { root /var/www/sites/zurmo; index index.php; } location / { root /var/www/sites/zurmo; index index.php; if (!-f $request_filename) { rewrite ^(.*)$ /index.php/$1 last; break; } if (!-d $request_filename) { rewrite ^(.*)$ /index.php/$1 last; break; } } location ~ ^/(protected|framework|themes/\w+/views) { deny all; } error_page 404 /index.php; location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico)$ { root /var/www/sites/cyruserv; access_log off; expires 30d; } location ~ \.php$ { fastcgi_split_path_info ^(.|\.php)(/.+)$; set $fsn /index.php; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fsn; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fsn; include fastcgi_params; } }
我确实改变了一点为我用于Drupal。
rewrite ^(.*)$ /index.php/$1 last;
是
rewrite ^(.*)$ /index.php?q=$1 last;
我不知道什么重写规则使用,我找不到在Zurmo文档中的任何东西。 如果有人可以修复这个configuration对我来说将是伟大的
Zurmo将URLredirect到index.php / [request_url]我需要为它重写它们。
例如:
http://zurmo/
redirect到:
http://zurmo/app/index.php/install/default
这是我得到的错误:
2013/08/07 20:51:58 [error] 16576#0: *115 rewrite or internal redirection cycle while processing "/index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//app/index.php/install/default", client: 127.0.0.1, server: zurmo, request: "GET /app/index.php/install/default HTTP/1.1", host: "zurmo"