Skip to content

Instantly share code, notes, and snippets.

@parsafatehi
Created November 7, 2021 07:35
Show Gist options
  • Select an option

  • Save parsafatehi/2a1b47cd4b6c59595be3bc6b463856ed to your computer and use it in GitHub Desktop.

Select an option

Save parsafatehi/2a1b47cd4b6c59595be3bc6b463856ed to your computer and use it in GitHub Desktop.

Revisions

  1. parsafatehi created this gist Nov 7, 2021.
    6 changes: 6 additions & 0 deletions redirect.nginx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # Redirect to a different domain

    server {
    server_name .domain1.com;
    return 301 https://domain2.com$request_uri;
    }