当我尝试通过www.test1.domain.de连接到我的Nginx代理时,我得到了尾随的%2C https://test1.domain.de%2C 。如果我连接到http://或https://,一切正常。尾巴从哪里来?
events {
}
http{
server {
listen 80;
server_name
return 301 https://$server_name$request_uri;
}
server {
listen 80;
server_name test1.domain.de;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name test1.domain.de;
location / {
proxy_pass http://webserver1:80;
rewrite ^/webserver1(.*)$ $1 break;
}
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
ssl_certificate /etc/letsencrypt/live/test1.domain.de/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/test1.domain.de/privkey.pem;
}
}