Difference between revisions of "Server (Nginx)"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Draft}}
+
{{lowercase}}
 +
 
 +
[[Subdomain redirection]]:
 +
  [[server]] {
 +
      [[listen]]      80;
 +
      [[server_name]]  ~^(?<my[[subdomain]]>.+)\.example\.com$;
 +
      [[return]]      301 http://example.com/$mysubdomain$[[request_uri]];
 +
  }
 +
 
  
  

Latest revision as of 08:56, 25 August 2022

Advertising: