CloudInsidr

Cyber security, infotech

  • Subscribe!
  • Privacy Policy
  • Legal
  • Contact Us

Join us on Twitter: @CloudInsidr

  • news & alerts
    • events
    • industry analysis
    • industry gossip
    • people
  • cloud, edge & co.
    • AWS
    • administration & orchestration
      • web servers in the cloud
      • mail servers
      • databases
  • cybersec & warfare
    • encryption
  • blockchain
Home Archives for regular expressions
RegEx Bliss: Set Up URL Redirects in NGINX Using Regular Expressions without Rewrites

Anna E Kobylinska 2016-02-04 Leave a Comment

RegEx Bliss: Set Up URL Redirects in NGINX Using Regular Expressions without Rewrites

There are two major no-nos when it comes to writing NGINX redirects:

  • thou shalt not use if statements (that’s a major no-no);
  • thought shalt not use rewrites (they are a waste of resources, as in “slow” and “expensive”).

Instead, use ol’ good location blocks. But what if you have plenty of URIs to redirect? How do you deploy RegEx magic with NGINX? Easy.

[Read more…]

Filed Under: Uncategorized, web servers in the cloud Tagged With: NGINX, RegEx, regular expressions

Subscribe

SSL/TLS Certificate Square (250 x 250)

Pearson Education (InformIT)

SSL/TLS Certificate Medium Rectangle (300 x 250)

©2022 CybrAnalytiqa OÜ

  • Content purchasing and syndication