0

When I set \p 8080 I can have calls to http://localhost:8080/ to interact with kdb+.

How can I do it for this url: http://localhost:8080/somepath ?

The use case if for my app that send HTTP requests to the kdb process to get data from the DB. For react reasons that are out of scope here (see this) I can't use http://localhost:8080/.

orr
  • 129
  • 10

1 Answers1

0

By default the root server for the q webserver is located in a folder called html under your QHOME folder. If you had a html document called mydoc.html then you could place it at, for instance,

$QHOME/html/example/mydoc.html

and reach it by calling

http://localhost:8080/example/mydoc.html

There is some info here: https://code.kx.com/q/kb/custom-web/

SeanHehir
  • 1,587
  • 9
  • 12
  • I don't have a `html` folder in my `QHOME` folder (I am running V3.6 x32 because I want it to work offline). – orr Jul 26 '21 at 14:24
  • You will need to create the folder yourself. Alternatively you can edit the .h.HOME variable in your q session to point to a different folder of your choice – SeanHehir Jul 26 '21 at 15:05