Dear Cyclos team
We have build your Cyclos in 2 version:
- Test version is: https://center.trustpay.vn
- Production version is: https://trustbank.asia
But, when running API at https://trustbank.asia/api, the Request URL always return to: https://center.trustpay.vn/api/xxxxxxxx (please see in attached picture)
Please guide us how to fix this problem? This is really important to us
Many thanks
Return incorrect URL after running API
Moderators: hugo, alexandre, rmvanarkel
Return incorrect URL after running API
- Attachments
-
- NEED SUPPORT FOR CONFIGURATION.png (64.63 KiB) Viewed 1601 times
-
- Posts: 245
- Joined: Tue Oct 05, 2010 1:14 pm
Re: Return incorrect URL after running API
Dear Trustpay,
Probably you copied the database from the test instance to the production version when you were ready setting up the system. Is this indeed the case? Hopefully the fix for this is very easy, can you first have a look at your default configuration, so you go system > configurations > Open the default configuration (the one on top of the list). And make the Main URL has the right address set. The REST/Swagger documentation/interface only uses this url when a proxy is used in front of the server (see cyclos.properties cyclos.header.remoteAddress = X-Forwarded-For). I hope this will solve the problem, if not please let us know!
Best regards,
Probably you copied the database from the test instance to the production version when you were ready setting up the system. Is this indeed the case? Hopefully the fix for this is very easy, can you first have a look at your default configuration, so you go system > configurations > Open the default configuration (the one on top of the list). And make the Main URL has the right address set. The REST/Swagger documentation/interface only uses this url when a proxy is used in front of the server (see cyclos.properties cyclos.header.remoteAddress = X-Forwarded-For). I hope this will solve the problem, if not please let us know!
Best regards,
Re: Return incorrect URL after running API
Thanks rmvanarkel!rmvanarkel wrote:Dear Trustpay,
Probably you copied the database from the test instance to the production version when you were ready setting up the system. Is this indeed the case? Hopefully the fix for this is very easy, can you first have a look at your default configuration, so you go system > configurations > Open the default configuration (the one on top of the list). And make the Main URL has the right address set. The REST/Swagger documentation/interface only uses this url when a proxy is used in front of the server (see cyclos.properties cyclos.header.remoteAddress = X-Forwarded-For). I hope this will solve the problem, if not please let us know!
Best regards,
And we have another problem when run domain/api from another network.
For examble:
We have network default https://center.trustpay.vn its run very well.
We have another network https://center.trustpay.vn/giftcard, we want run https://center.trustpay.vn/giftcard/api and meet this problem.
Please help us!
Thanks!
- Attachments
-
- Capture.PNG (22.78 KiB) Viewed 1533 times