Skip to content

Better subdomain support #61

Closed
wants to merge 2 commits into from

3 participants

@darrinholst

I use a banking site that uses random subdomains...web1.mybank.com, web2.mybank.com. I wanted to just have ~/.js/mybank.com.js and have it apply to any subdomain. This patch will do that. Given a url of /web1.mybank.com.js it will try to return [default.js, mybank.com.js, web1.mybank.com.js] in that order.

It also includes my attempt at hacking in some unit tests for the daemon.

I think this would also resolve issue #20.

darrinholst added some commits Mar 3, 2012
@darrinholst darrinholst serves all js files for the given domain
if sub.domain.com is requested this will serve default.js,
domain.com.js, and sub.domain.com.js for any that are available
5040e75
@darrinholst darrinholst default the port when not passed 7c1336f
@parkr
parkr commented May 15, 2012

+1. I like to browse @waferbaby's usesthis.com and it makes extensive use of subdomains. I'd love to have usesthis.com.js apply to all subdomains of this site.

@defunkt
Owner
defunkt commented Aug 29, 2012

Added in 047e2bf

@defunkt defunkt closed this Aug 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.