Back

How to use multiple hostnames for a platform?

  • 0
  • Web
andrefuchs
28 Feb, 2024, 11:39

I've set up a web platform, and I need to allow multiple hostnames:

localhost http://192.168.2.111:8080/ *.netlify.app example.com

How do I add multiple hostnames? I tried comma-separated, but it didn't work. (404 error)

Thank you

TL;DR
Developers asking how to use multiple hostnames for their platform - they tried comma-separated but it resulted in a 404 error. The correct way to add multiple hostnames is by creating separate server blocks for each hostname in the configuration file.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more