K
K
KasperOffskyy2015-09-18 12:13:48
Nginx
KasperOffskyy, 2015-09-18 12:13:48

How to redirect an address to (return 301 https ) - except for *.subdomains?

Can you please tell me how to redirect the site to https , but only for the main domain example.com , without auto-subdomains like *.example.com ?
Now Nginx has this setting:
listen 123.12.12.123:80;
return 301 https://$host$request_uri;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question