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
Multi Domain Support #560
Comments
You have multiple domains and want to link all your domains to ONE YOURLS installation. Your webservers config file should configured simliar like this:
or
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:
and
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 |
Awesome guide, thanks for this. I'll link to this in the wiki for anyone interested. |
Some script allows user selected Multi short url domain as "Short URL Script v3.3" after enter the domain into input. Can YOURLS make it so simplify instead of having to do such complex? |
It will come in future version, yes |
Hi , thanks for great tool. |
good idea |
Is there a way to use multiple domains within a single installation but the other domains are in different servers? Thanks for the feedback soon |
@mauwiks If the domain is pointed to a different server, how do you propose YOURLS should receive the requests? |
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:
|
This is a COPY of Issue 560: Multi Domain Support, filed on Google Code before the project was moved on Github.
Please review the original issue and especially its comments. Comments here on closed issues will be ignored. Thanks.
Original description
The text was updated successfully, but these errors were encountered: