Browse Source

Fixed Owncloud NGINX template causes redirect loop.

Phinitnan Chanasabaeng 10 years ago
parent
commit
81ae01099d
26 changed files with 26 additions and 26 deletions
  1. 1 1
      install/debian/7/templates/web/nginx/php5-fpm/owncloud.stpl
  2. 1 1
      install/debian/7/templates/web/nginx/php5-fpm/owncloud.tpl
  3. 1 1
      install/debian/8/templates/web/nginx/php5-fpm/owncloud.stpl
  4. 1 1
      install/debian/8/templates/web/nginx/php5-fpm/owncloud.tpl
  5. 1 1
      install/rhel/5/templates/web/nginx/php-fpm/owncloud.stpl
  6. 1 1
      install/rhel/5/templates/web/nginx/php-fpm/owncloud.tpl
  7. 1 1
      install/rhel/6/templates/web/nginx/php-fpm/owncloud.stpl
  8. 1 1
      install/rhel/6/templates/web/nginx/php-fpm/owncloud.tpl
  9. 1 1
      install/rhel/7/templates/web/nginx/php-fpm/owncloud.stpl
  10. 1 1
      install/rhel/7/templates/web/nginx/php-fpm/owncloud.tpl
  11. 1 1
      install/ubuntu/12.04/templates/web/nginx/php5-fpm/owncloud.stpl
  12. 1 1
      install/ubuntu/12.04/templates/web/nginx/php5-fpm/owncloud.tpl
  13. 1 1
      install/ubuntu/12.10/templates/web/nginx/php5-fpm/owncloud.stpl
  14. 1 1
      install/ubuntu/12.10/templates/web/nginx/php5-fpm/owncloud.tpl
  15. 1 1
      install/ubuntu/13.04/templates/web/nginx/php5-fpm/owncloud.stpl
  16. 1 1
      install/ubuntu/13.04/templates/web/nginx/php5-fpm/owncloud.tpl
  17. 1 1
      install/ubuntu/13.10/templates/web/nginx/php5-fpm/owncloud.stpl
  18. 1 1
      install/ubuntu/13.10/templates/web/nginx/php5-fpm/owncloud.tpl
  19. 1 1
      install/ubuntu/14.04/templates/web/nginx/php5-fpm/owncloud.stpl
  20. 1 1
      install/ubuntu/14.04/templates/web/nginx/php5-fpm/owncloud.tpl
  21. 1 1
      install/ubuntu/14.10/templates/web/nginx/php5-fpm/owncloud.stpl
  22. 1 1
      install/ubuntu/14.10/templates/web/nginx/php5-fpm/owncloud.tpl
  23. 1 1
      install/ubuntu/15.04/templates/web/nginx/php5-fpm/owncloud.stpl
  24. 1 1
      install/ubuntu/15.04/templates/web/nginx/php5-fpm/owncloud.tpl
  25. 1 1
      install/ubuntu/15.10/templates/web/nginx/php5-fpm/owncloud.stpl
  26. 1 1
      install/ubuntu/15.10/templates/web/nginx/php5-fpm/owncloud.tpl

+ 1 - 1
install/debian/7/templates/web/nginx/php5-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/debian/7/templates/web/nginx/php5-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/debian/8/templates/web/nginx/php5-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/debian/8/templates/web/nginx/php5-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/rhel/5/templates/web/nginx/php-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/rhel/5/templates/web/nginx/php-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/rhel/6/templates/web/nginx/php-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/rhel/6/templates/web/nginx/php-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/rhel/7/templates/web/nginx/php-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/rhel/7/templates/web/nginx/php-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/12.04/templates/web/nginx/php5-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/12.04/templates/web/nginx/php5-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/12.10/templates/web/nginx/php5-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/12.10/templates/web/nginx/php5-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/13.04/templates/web/nginx/php5-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/13.04/templates/web/nginx/php5-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/13.10/templates/web/nginx/php5-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/13.10/templates/web/nginx/php5-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/14.04/templates/web/nginx/php5-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/14.04/templates/web/nginx/php5-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/14.10/templates/web/nginx/php5-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/14.10/templates/web/nginx/php5-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/15.04/templates/web/nginx/php5-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/15.04/templates/web/nginx/php5-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/15.10/templates/web/nginx/php5-fpm/owncloud.stpl

@@ -43,7 +43,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;

+ 1 - 1
install/ubuntu/15.10/templates/web/nginx/php5-fpm/owncloud.tpl

@@ -39,7 +39,7 @@ server {
         try_files $uri $uri/ /index.php;
 
         location ~ \.php(?:$|/) {
-            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+            fastcgi_split_path_info ^(.+\.php)(/.+)$;
             include         /etc/nginx/fastcgi_params;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
             fastcgi_param PATH_INFO $fastcgi_path_info;