These are chat archives for ushahidi/Community

11th
Dec 2017
Cam Macdonell
@cmacdonell
Dec 11 2017 03:54

Here's a gist of my sites-enabled/default for nginx

https://gist.github.com/cmacdonell/c268d1af05ccf0169748be2c4a510fd8

Igor Golov
@TechnoDexx
Dec 11 2017 06:54
@ushbot I place Ushahidi on a subdomain using two configs. And in this connection I have two configs: map and api. This worked for Apache, but with NGINX some difficulties arose. My configs is:
Ushbot
@ushbot
Dec 11 2017 07:51
[David Losada, Ushahidi] @TechnoDexx the client part seems to be fine
[David Losada, Ushahidi] the API part , I’m not sure about the first two location blocks
[David Losada, Ushahidi] you could try location / { try_files $uri /index.php$uri?$args; }
Igor Golov
@TechnoDexx
Dec 11 2017 07:57
@ushbot Ok.
Igor Golov
@TechnoDexx
Dec 11 2017 08:11
@ushbot Another Error:
request url: https://api.autism-support.ru/api/v3/config request method: Get Remote adress: 82.202.226.79:443 Status Code: 500
Igor Golov
@TechnoDexx
Dec 11 2017 08:18
@ushbot I'll try to change the permissions on the files.
Igor Golov
@TechnoDexx
Dec 11 2017 08:39
@ushbot I have an error:
2017/12/11 11:06:04 [error] 23600#23600: *7 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/api/v3/config", client: 94.233.86.200, server: api.autism-support.ru, request: "GET /api/v3/config HTTP/1.1", host: "api.autism-support.ru", referrer: "https://map.autism-support.ru/" 2017/12/11 11:10:30 [error] 23600#23600: *15 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/media/image/products/фигруки_7788-6А.php", client: 178.154.171.90, server: api.autism-support.ru, request: "GET /media/image/products/%D1%84%D0%B8%D0%B3%D1%80%D1%83%D0%BA%D0%B8_7788-6%D0%90.php HTTP/1.1", host: "www.yard-pmr.ru" 2017/12/11 11:11:39 [error] 23600#23600: *16 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/api/v3/configrequest", client: 104.45.18.178, server: api.autism-support.ru, request: "GET /api/v3/configrequest HTTP/1.1", host: "api.autism-support.ru" 2017/12/11 11:11:41 [error] 23600#23600: *17 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/api/v3/configrequest", client: 104.209.188.207, server: api.autism-support.ru, request: "GET /api/v3/configrequest HTTP/1.1", host: "api.autism-support.ru" 2017/12/11 11:11:50 [error] 23600#23600: *23 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/api/v3/config", client: 94.233.86.200, server: api.autism-support.ru, request: "GET /api/v3/config HTTP/1.1", host: "api.autism-support.ru", referrer: "https://map.autism-support.ru/" 2017/12/11 11:12:31 [error] 23600#23600: *24 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/api/v3/configrequest", client: 104.45.18.178, server: api.autism-support.ru, request: "GET /api/v3/configrequest HTTP/1.1", host: "api.autism-support.ru" 2017/12/11 11:14:08 [error] 23600#23600: *25 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/api/v3/configrequest", client: 104.45.18.178, server: api.autism-support.ru, request: "GET /api/v3/configrequest HTTP/1.1", host: "api.autism-support.ru" 2017/12/11 11:24:09 [error] 23600#23600: *41 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/api/v3/config", client: 94.233.86.200, server: api.autism-support.ru, request: "GET /api/v3/config HTTP/1.1", host: "api.autism-support.ru", referrer: "https://map.autism-support.ru/" 2017/12/11 11:30:48 [error] 23600#23600: *55 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/api/v3/config", client: 94.233.86.200, server: api.autism-support.ru, request: "GET /api/v3/config HTTP/1.1", host: "api.autism-support.ru", referrer: "https://map.autism-support.ru/"
Igor Golov
@TechnoDexx
Dec 11 2017 08:45
@ushbot I'm trying another way...
Koda521
@Koda521
Dec 11 2017 09:49
Hi, how can I login as an admin? Once it worked but now, I am not able to find it out.
Ushbot
@ushbot
Dec 11 2017 11:24
[David Losada, Ushahidi] @technodexx maybe something with the fastcgi config (whaterver is in snippets/fastcgi-php.conf )
[David Losada, Ushahidi] @Koda521 is this a deployment you are hosting yourself?
Igor Golov
@TechnoDexx
Dec 11 2017 17:03
@ushbot I want to try another way to install.
Cam Macdonell
@cmacdonell
Dec 11 2017 18:36
@technodexx I needed two rewrite rules, one to put index.php in the path, and then one to stop the looping of rewrites (your 500 error above). See my default config above. It should be placed in the sites-enabled directory
Igor Golov
@TechnoDexx
Dec 11 2017 19:04
@cmacdonell Nothing is clear and I will refrain from further action. I want to put maps on a subdomain.