Better subdomain support #61

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
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

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
@parkr

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr 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.

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

This comment has been minimized.

Show comment
Hide comment
@defunkt

defunkt Aug 29, 2012

Owner

Added in 047e2bf

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