spro / simon

Dynamic routing/vhosts with nginx + Lua + Redis
73 stars 10 forks source link

Wildcard subdomains using the same session cookie #2

Closed chadlieberman closed 8 years ago

chadlieberman commented 8 years ago

local _, count = string.gsub(host, "%.", "") if count > 1 then host = string.lower(string.gsub(host, "^%w*(.-)%.", "")) end

chadlieberman commented 8 years ago

At least will work for alphanumeric subdomains...

spro commented 8 years ago

Closed with 10261f3c7a32c8b559d7554bde887d7853f90704