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

6 lines
136 B
Plaintext

server {
listen 80;
server_name ~^www.(?<domain>.+)$;
return {{REDIRECT_CODE}} {{REDIRECT_SCHEME}}://$domain$request_uri;
}