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

6 lines
135 B
Smarty
Raw Normal View History

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