Canva on 2.3.12

To be completed by the original poster:

CMS Version

2.3.12

Installation Method

Custom apache

Operating System

centos 8

Issue

trying to connect canva app

when trying to auth canva i get this 404 error and attached image

Dec 7 10:59:14 projects httpd: [07/Dec/2021:10:59:14 -0800] 145.239.4.160 my.domain.com - - POST /xibo2/api/authorize/access_token HTTP/1.1 404 2223 1327 7158 GB “-” “GuzzleHttp/6.5.5 curl/7.79.1 PHP/7.3.22” TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384

appreciate any tips thank you

The 404 error suggests that you have not adapted the URL rewriting rules for Xibo being run from a subdirectory:

https://xibo.org.uk/docs/setup/prepare-your-environment#url_rewriting

thanks for the suggestion, the site works fine though, if there were a larger rewrite issue i think i would have more issues…

i can reach the following URLs:

https://my.domain.com/xibo2/
https://my.domain.com/xibo2/api
https://my.domain.com/xibo2/api/authorize

the only one that gives a 404 is

https://my.domain.com/xibo2/api/authorize/access_token

in my xibo-cms/web/.htaccess i have the standard config

RewriteEngine On

RewriteBase /xibo2

fix authorization header

RewriteCond %{HTTP:Authorization} .+

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

requests for api authorize

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_URI} ^/api/authorize/.*$

RewriteRule ^ api/authorize/index.php [QSA,L]

requests that start with api go down to api/index.php

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_URI} ^/api/.*$

RewriteRule ^ api/index.php [QSA,L]

install

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_URI} ^/install/.*$

RewriteRule ^ install/index.php [QSA,L]

maintenance

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_URI} ^/maint/.*$

RewriteRule ^ maint/index.php [QSA,L]

all others - i.e. web

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !.(css|js|png|jpg)$

RewriteCond %{REQUEST_URI} !^/dist/.*$

RewriteCond %{REQUEST_URI} !^/theme/.*$

RewriteRule ^ index.php [QSA,L]

I took this to our dev team to take a closer look, who have created the following issue:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.