this post was submitted on 02 Jul 2024
1 points (100.0% liked)

nginx

4 readers
1 users here now

The nginx community on Reddit. Reddit gives you the best of the internet in one place.

founded 1 year ago
MODERATORS
 
The original post: /r/nginx by /u/builder999 on 2024-07-02 15:48:49.

I have created an app on nginx and can access it with curl https://api.domain1

Now I would like to access the same api with curl https://api.domain2 and more generally to let anyone access with curl https://api.mydomain by setting a CNAME or A record that points toward api.domain1.

Can I achieve this? Do I also need to issue a ssl certificate for each domain and update the nginx configs? Is it possible to do that automatically?

Thanks a lot

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here