Difference between revisions of "Subdomain redirection"

From wikieduonline
Jump to navigation Jump to search
(Created page with " https://stackoverflow.com/questions/45318758/nginx-variable-for-subdomain server { listen 80; server_name ~^(?<mysubdomain>.+)\.example\.com$...")
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
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$;
Line 8: Line 9:
 
== Related terms ==
 
== Related terms ==
 
* [[URL redirection]]
 
* [[URL redirection]]
 +
* <code>[[nginx -t]]</code>
 +
* <code>[[systemctl restart nginx]]</code>
 +
* [[Regular expressions]]
 +
* [[Lambda@Edge]]
 +
* [[rewrite]]
  
 
== See also ==
 
== See also ==
 +
* {{Nginx}}
 
* {{DNS}}
 
* {{DNS}}
* {{redirection}}
+
* {{URL redirection}}
 +
 
 +
[[Category:Web]]

Latest revision as of 10:48, 21 June 2023

Advertising: