privatebin/etc/nginx/sites-available/redirect-www-to-apex.conf

6 lines
136 B
Plaintext
Raw Normal View History

2017-03-28 17:46:14 +00:00
server {
listen 80;
server_name ~^www.(?<domain>.+)$;
return {{REDIRECT_CODE}} {{REDIRECT_SCHEME}}://$domain$request_uri;
2017-03-28 17:46:14 +00:00
}