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 permanent redirect
How to redirect all http to https in NGINX

Cloud Insidr 2018-09-06 Leave a Comment

How to redirect all http to https in NGINX

When setting up https on an existing server, you need to provide a redirect for all those visitors arriving via http backlinks. Here is how to do this.

[Read more…]

Filed Under: encryption, NGINX Tagged With: HTTPS, NGINX, permanent redirect

Redirect a Subdirectory in NGINX

Cloud Insidr 2015-11-13

Redirect a Subdirectory in NGINX

To redirect a subdirectory in NGINX, use this location block (an example for https):

location /old-subdirectory {
return 301 https://$server_name/new-subdirectory/;
}

For more NGINX redirects see this post: RegEx Bliss: Set Up URL Redirects in NGINX Using Regular Expressions without Rewrites.

Filed Under: Uncategorized Tagged With: NGINX, permanent redirect

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