Rack middleware for defining a canonical host name.

For most applications, you can insert the middleware into the config.ru file in the root of the application.Here’s a simple example of what the config.ru in a Rails application might look like after adding the Rack::CanonicalHost middleware.
Rack middleware for defining a canonical host name. #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/rack-middleware-for-defining-a-canonical-host-name

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles