Run multiple YOURLS sites from the same YOURLS instance.
Instructions:
- Create a DB for each domain you want to run YOURLS on with this naming convention
yourls_example.com
- Create MySQL user named
yourls
- Give that user full access to all DBs with the
yourls
prefix - Add
config.php
to theuser
directory in YOURLS - Add your domains to the
$allowed_hosts
array on line 13 Ex.$allowed_hosts = array('example.com', 'test.com');
- Add MySQL username on line 27
- Add MySQL password on line 30
- Add MySQL host on line 37
- Add your secret hash to line 70 ( you can get a has at http://yourls.org/cookie )
- Edit the login info on line 76
- Visit each site and install YOURLS
- Enjoy