I am running Nginx+PHP-FPM (Ajenti-V). I've setup all according the documentation, after the setup it simply does not load. I get "Page is not redirecting properly" error on the browsers
2016/04/18 15:12:30 [error] 1963#0: *28 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/core/js/oc.js", client: IP., server: domain.com, request: "GET /index.php/core/js/oc.js?v=f474051010667eafc3e139228b8e9c48 HTTP/1.1", host: "domain.com"
My Nginx Config
#AUTOMATICALLY GENERATED - DO NO EDIT!
server {
listen 80;
server_name domain.com www.domain.com;
# enforce https
return 301 https://$server_name$request_uri;
}
server {
listen *:443 ssl;
server_name domain.com www.domain.com;
access_log /var/log/nginx/owncloud.access.log;
error_log /var/log/nginx/owncloud.error.log;
root /srv/owncloud;
index index.html index.htm index.php;
ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;
# Add headers to serve security related headers
# Before enabling Strict-Transport-Security headers please read into this topic first.
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# The following 2 rules are only needed for the user_webfinger app.
# Uncomment it if you're planning to use this app.
#rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
#rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
location = /.well-known/carddav { return 301 $scheme://$host/remote.php/dav; }
location = /.well-known/caldav { return 301 $scheme://$host/remote.php/dav; }
location /.well-known/acme-challenge { }
# set max upload size
client_max_body_size 512M;
fastcgi_buffers 64 4K;
# Disable gzip to avoid the removal of the ETag header
gzip off;
# Uncomment if your server is build with the ngx_pagespeed module
# This module is currently not supported.
#pagespeed off;
error_page 403 /core/templates/403.php;
error_page 404 /core/templates/404.php;
location / {
rewrite ^ /index.php$uri;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
deny all;
}
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
deny all;
}
location ~ ^/(?:updater|ocs-provider)(?:$|/) {
try_files $uri/ =404;
index index.php;
}
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~* \.(?:css|js)$ {
try_files $uri /index.php$uri$is_args$args;
add_header Cache-Control "public, max-age=7200";
# Add headers to serve security related headers
# Before enabling Strict-Transport-Security headers please read into this topic first.
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
# Optional: Don't log access to assets
access_log off;
}
location = /data/htaccesstest.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$ {
try_files $uri /index.php$uri$is_args$args;
# Optional: Don't log access to other assets
access_log off;
}
location ~ [^/]\.php(/|$) {
fastcgi_index index.php;
include fcgi.conf;
fastcgi_pass unix:/var/run/ajenti-v-php-fcgi-owncloud-php-fcgi-0.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Hi,
the nginx config is not the one provided here:
https://github.com/owncloud/documentation/wiki/ownCloud-9.x-nginx-config
Especially the location ~ [^/]\.php(/|$) { is wrong and also wrong placed.
After having editing the php section, I was able to get owncloud running but I was still getting errors on 2 issues.
I. Notifications Push?
2016/04/18 16:42:02 [error] 1288#0: *6 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/core/js/oc.js", client: ip.address, server: domain.com, request: "GET /core/js/oc.js?v=f474051010667eafc3e139228b8e9c48 HTTP/1.1", host: "domain.com"
2016/04/18 16:42:04 [error] 1288#0: *11 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/apps/files/core/img/actions/toggle-pictures.svg", client: ip.address, server: domain.com, request: "GET /apps/files/core/img/actions/toggle-pictures.svg HTTP/1.1", host: "domain.com"
2016/04/18 16:42:04 [error] 1288#0: *14 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/apps/files/undefined/img/notifications.svg", client: ip.address, server: domain.com, request: "GET /apps/files/undefined/img/notifications.svg HTTP/1.1", host: "domain.com"
2016/04/18 16:42:04 [error] 1288#0: *12 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/apps/files/core/search/templates/part.results.html", client: ip.address, server: domain.com, request: "GET /apps/files/core/search/templates/part.results.html HTTP/1.1", host: "domain.com"
2016/04/18 16:42:04 [error] 1288#0: *20 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/apps/files/core/img/breadcrumb.svg", client: ip.address, server: domain.com, request: "GET /apps/files/core/img/breadcrumb.svg HTTP/1.1", host: "domain.com"
2016/04/18 16:42:35 [error] 1288#0: *26 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/core/js/oc.js", client: ip.address, server: domain.com, request: "GET /core/js/oc.js?v=f474051010667eafc3e139228b8e9c48 HTTP/1.1", host: "domain.com"
2016/04/18 16:42:49 [error] 1288#0: *49 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/core/js/oc.js", client: 112.133.248.101, server: domain.com, request: "GET /core/js/oc.js?v=f474051010667eafc3e139228b8e9c48 HTTP/1.1", host: "domain.com"
2016/04/18 19:15:17 [error] 1288#0: *119 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/core/js/oc.js", client: ip.address, server: domain.com, request: "GET /core/js/oc.js?v=f474051010667eafc3e139228b8e9c48 HTTP/1.1", host: "domain.com"
2016/04/18 19:15:20 [error] 1288#0: *117 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/apps/files/core/img/actions/toggle-pictures.svg", client: ip.address, server: domain.com, request: "GET /apps/files/core/img/actions/toggle-pictures.svg HTTP/1.1", host: "domain.com"
2016/04/18 19:15:20 [error] 1288#0: *121 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/apps/files/undefined/img/notifications.svg", client: ip.address, server: domain.com, request: "GET /apps/files/undefined/img/notifications.svg HTTP/1.1", host: "domain.com"
2016/04/18 19:15:20 [error] 1288#0: *120 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/apps/files/core/img/breadcrumb.svg", client: ip.address, server: domain.com, request: "GET /apps/files/core/img/breadcrumb.svg HTTP/1.1", host: "domain.com"
2016/04/18 19:15:20 [error] 1288#0: *125 rewrite or internal redirection cycle while internally redirecting to "/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/apps/files/core/search/templates/part.results.html", client: ip.address, server: domain.com, request: "GET /apps/files/core/search/templates/part.results.html HTTP/1.1", host: "domain.com"
II. 
@gxgani Please use the forums or the users mailinglist for further support questions: https://owncloud.org/support/
For Nr. 2 you just need to follow the link to the documentation...
@gxgani have you solve the problem? because i have same problem here
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
After having editing the php section, I was able to get owncloud running but I was still getting errors on 2 issues.
I. Notifications Push?
II.