#1 2017-09-24 13:02:56

MagoSchmidt
Member
Registered: 2017-07-21
Posts: 5

THttpApiServer Virtual Directory

Hi, All

What is the simplest way for me to implement "Virtual Directories" (like IIS) using THttpApiServer?

Sample "09 - HttpApi web server" works great serving static files. Now I need the same using "virtual directories"

Nowadays I'm writing a THttpServerRequest.OnRequest handler and mapping these "virtual directories" to real ones....Is there any other way?

Thaks in advance!

Last edited by MagoSchmidt (2017-09-24 13:06:17)

Offline

#2 2017-09-25 10:35:39

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,231
Website

Re: THttpApiServer Virtual Directory

Did you try TSQLHttpServer.DomainHostRedirect ?
https://synopse.info/files/html/api-1.1 … STREDIRECT

Offline

#3 2017-09-28 14:22:12

MagoSchmidt
Member
Registered: 2017-07-21
Posts: 5

Re: THttpApiServer Virtual Directory

Well, I was intending to use only THttpApiServer. TSQLHttpServer has features that I do not need now....

Anyway, my "manual mapping" works well. Thank you very much for reply

Offline

Board footer

Powered by FluxBB