#community-help

Configuring Apache for Typesense Hosting on a VM

TLDR otieno_otieno asked for assistance on how to configure an Apache2 proxy server for Typesense. Jason offered some general advice, informing that Typesense listens on port 8108 by default, but could not advise on specific configuration.

Powered by Struct AI
Dec 12, 2022 (10 months ago)
otieno_otieno
Photo of md5-54dcf11e5f21262d5d810dfda242bd77
otieno_otieno
02:05 PM
Hello everyone
I am hosting several websites on a virtual machine and as such i have various domain names that point to the same virtual machine. I am using apache2 as a proxyserver to route various requests to the correct localhost port. I however would also like to selfhost typesense and use one of these domains as a host(I hope that makes sense).
How would i go about configuring the apache config file such that the requests are either proxied to typesense or such that requests are directly sent to typesense without passing through the proxy server? Here is my current apache2 config file for the host id like to use...
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
03:11 PM
It’s been a while since I used Apache, so I’m not sure of the exact syntax. But configuring Typesense behind Apache is no different than configuring any other HTTP server as a proxy behind Apache
03:11
Jason
03:11 PM
The key thing to watch out for is that Typesense by default listens on port 8108