Jump to content

The ultimate community for Ruby on Rails developers.


Spree E-commerce: obfuscate '/admin' route

spree nginx rails 4 admin custom route security

  • Please log in to reply
No replies to this topic

#1 QuailAndQuasar



  • Members
  • 2 posts

Posted 28 February 2014 - 10:32 PM

First off, I have googled the ever-loving s*** out of this problem. I've researched and worked on it. To date, I've not been successful.

My spree site has that familiar link.../admin

For security purposes, I'd prefer that url was inaccessible to the public. I'd prefer that we can obfuscate that traditional admin path to something like....say...../mycustomadmin

Here's what I'm working with:Nginx, Rails 4, AWS application stacks running Ubuntu

*Possible approaches

--can we do this at the Nginx level?

--maybe this should be handled in the routes.rb file via namespace or scope.. or even match

--what about rails 4 initializers? is there a way to initialize success?


-- I looks like the Nginx "internal;" flag would work with an Nginx rewrite. It didn't work.

-- I must consider "/admin" references from third-party gems

If you have any good ideas that work (thus solving the problem), I'll send you an effing edible arrangement.

Also tagged with one or more of these keywords: spree, nginx, rails 4, admin, custom route, security

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users