Difference between revisions of "Server name"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
  
server_name
+
* <code>server_name</code>
 +
* <code>server_name _;</code>
  
  server_name _;
+
  server {
 +
    [[listen]]      80;
 +
    server_name ~^(?<name>.+)\.example\.com$;
 +
    [[return]]      301 http://example.com/$name$request_uri;
 +
}
  
 
== See also ==
 
== See also ==

Revision as of 17:48, 26 August 2021

Advertising: