Difference between revisions of "Subdomain redirection"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
Using Nginx: https://stackoverflow.com/questions/45318758/nginx-variable-for-subdomain
 
Using Nginx: https://stackoverflow.com/questions/45318758/nginx-variable-for-subdomain
  
   server {
+
   [[server]] {
 
       [[listen]]      80;
 
       [[listen]]      80;
 
       [[server_name]]  ~^(?<my[[subdomain]]>.+)\.example\.com$;
 
       [[server_name]]  ~^(?<my[[subdomain]]>.+)\.example\.com$;

Revision as of 22:02, 20 October 2021

Advertising: