-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation: Explain how multiple domains can be used/added #252
Comments
Fair point |
@acelaya Thanks again here! |
Hey @enoversum. Would something like this be helpful? |
Hey @acelaya, I think that's already helpful! |
Instructions to add a new domain to shlink database (when the server is configured) aren't still documented, where can i get instructions to do that on the server cli or via rest api. |
Were you able to find a command for adding a new domain to the database? |
Now but it's possible by using the partial steps for web server configuration for multiple domains and then using the web ui to create a link and select a new server. But I am not able to find the rest api endpoint for it. |
There's no endpoint to create new domains explicitly. Domains are created as a side effect of creating a short URL with a domain which not yet exists, or configuring special redirects for a domain which not yet exists.
However, these two are only used to make Shlink aware of the existence of new domains internally. You still need to take care of all the infrastructure stuff (make sure those domains properly resolve at DNS level, make sure your web server will respond to requests to those domains, etc) |
How do I go configuring a DNS record to connect another domain on my shlink instance? I am using link.site.com to host and manage my shlink instance. But I want to add domains like domain1.com, domain2.com. domain1.com, domain2.com are running wordpress. On domain1.com NS, do I have to add a record like this? RECORD TYPE: A Or? |
The DNS record for this domain should point to the same server as the main domain you are using for Shlink. Then you need to point this domain to the Shlink path just as you did with your main domain.
Note that this is just my personal server with its settings, take care for that you use the right settings for your environment (PHP version, proxy etc.). |
I have to confess, I’m not an in-depth server managing Linux pro that spends his days in the console. It took me quite some time to understand how I could actually add further domains to my main domain as shortlink domains, as the documentation only explains in detail how shortlink resolving works with multiple domains, but not how to actually add further domains.
The documentation could briefly mention that you'd have to set up your additional domain(s) to point to your Shlink installation, and then could use/add the domain for a specific link through either the CLI or web interface (while the latter is also a bit complicated to find, but you probably won't add new domains every day).
The text was updated successfully, but these errors were encountered: