Difference between revisions of "Server (Nginx)"

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

Revision as of 22:03, 20 October 2021

Advertising: