Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Link shortener, but with subdomains. And manual shortlinks.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app Subdomain string validation added. Closes #1 October 10, 2011
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 log
Octocat-spinner-32 public Removed compiled assets from tree October 06, 2011
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
README.md

SubbySub

SubbySub is a URL shortener that works with subdomains rather than paths. Uses SQLlite3 as DB.

Example

http://github.hadric.us (redirects to my GitHub Profile)

Installation

  1. Clone this repo
  2. Set up a wildcard subdomain DNS entry to point to your server (so that all subdomains resolve to the one address)
    • e.g. *.hadric.us
  3. rake db:migrate
  4. Create config/config.yaml and specify user and password (used for Auth)

Config.yml

    development:
        parent_domain: <parent domain>
        username: <username>
        password: <password>

    test:
        parent_domain: <parent domain>
        username: <username>
        password: <password>

    production:
        parent_domain: <parent domain>
        username: <username>
        password: <password>

Thanks

Something went wrong with that request. Please try again.