Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispatch with mod_rewrite #20

Closed
0-ali opened this issue Sep 19, 2016 · 1 comment
Closed

Dispatch with mod_rewrite #20

0-ali opened this issue Sep 19, 2016 · 1 comment

Comments

@0-ali
Copy link

0-ali commented Sep 19, 2016

Hi!
When I change psx_dispatch to '' (to use mod_rewrite) ,work good with routes. this issues is backend.htm still use index.php\backend instead of backend.
Some details:
Response:

{
    "success": false,
    "title": "Internal Server Error",
    "message": "Unknown location"
}

Response Headers:

HTTP/1.1 404 Not Found
Date: Mon, 19 Sep 2016 19:07:55 GMT
Server: Apache
Vary: Accept,User-Agent
x-powered-by: psx
Connection: keep-alive, Keep-Alive
Content-Length: 97
Keep-Alive: timeout=5, max=100
Content-Type: application/json

Request-Headers:

POST /index.php/backend/token HTTP/1.1
Host: fusio
Connection: keep-alive
Content-Length: 29
Pragma: no-cache
Cache-Control: no-cache
Accept: application/json, text/plain, */*
Origin: http://fusio/
authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36
Content-Type: application/json;charset=UTF-8
Referer: http://fusio/backend.htm
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.8

@0-ali
Copy link
Author

0-ali commented Sep 19, 2016

To fix this issue:

Change

var fusioUrl = fusioProvider.guessFusioEndpointUrl(false);

on public/backend.htm LN 22

To

var fusioUrl = fusioProvider.guessFusioEndpointUrl(true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant