Difference between revisions of "Subdomain"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
  
  
Subdomain [[redirection]]:
+
[[Subdomain redirection]]
https://stackoverflow.com/questions/45318758/nginx-variable-for-subdomain
+
 
  server {
 
      [[listen]]      80;
 
      [[server_name]]  ~^(?<my[[subdomain]]>.+)\.example\.com$;
 
      [[return]]      301 http://example.com/$mysubdomain$[[request_uri]];
 
  }
 
  
 
== Related terms ==
 
== Related terms ==

Revision as of 18:16, 26 August 2021

Advertising: