T
T
triadecom2019-05-01 13:43:23
API
triadecom, 2019-05-01 13:43:23

How to launch a website with a callback service on one domain?

The essence of the matter is this: There are vds on apache + tomcat8, with one IP, domain and ssl certificate.
The site works only from under port 443, for https to work.
But it is also necessary to attach separate functionality to the site in the form of processing requests for vk api, and ideally organize the work of the vk callback api service, but since VKontakte requires ssl, all this will have to be done simultaneously with the operation of the site.
As a servlet, both for the api handler and for the site itself, I use Tomcat, roughly speaking on only kotlin, realizing its potential, organizing the work of both the backend and the frontend of the site. Well, work with api will also be on it.
But how is it possible to implement all this in my case?
Or, how appropriate would it be to implement a callback in the backend itself?
Perhaps I am saying some obvious or stupid things, but I myself can’t understand this, since I recently began to comprehend web development without leaving the familiar jvm language.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2019-05-01
@triadecom


add the RewriteRule ^(callback|otherdir)($|/) - [L] condition to the htacess tomcat rule
so that the exclusion folders you need are not redirected

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question