Difference between revisions of "Return (nginx.conf)"

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

Revision as of 17:52, 26 August 2021

Advertising: