Multi Domain Support #560
Please review the original issue and especially its comments. Comments here on closed issues will be ignored. Thanks.
The text was updated successfully, but these errors were encountered:
You have multiple domains and want to link all your domains to ONE YOURLS installation.
Your webservers config file should configured simliar like this:
Copy all ("YOURLS"-related) files and folders to a new created
Copy your webservers config file to be responsive to both URLs in each seperate config file similar like this:
Configure your both config files (in comparison to example at the top) similar like this:
Now refine your
Restart your webservers config changes
That's it. Repeat it as many times you want to and as many URLs you like.
Why do I bring in the
Delete all folders are not related to YOURLS in the new
There are many more ways to fit your needs. I just want to show the concept of a way to do it. I am sure you understand it principally.
Do not forget to google about the risk of "FollowSymLinks" in your webservers config!
Greets ... G-Nick
Instead of having two sets of files and two different config files, I just did this in my single config file..
Not sure if there are any other implications to take into consideration, but this seems to work for me wihtout having to maintain two copies of the site.
I was wondering why my CNAME wasn't working. @alexander7567, your solution did the trick! Thanks!
In case it helps others, I adapted @alexander7567's approach to be a little less verbose if you're adding a bunch of domains: