> Use "curl -i" to make the http request. See the response. > Use (for example) $host instead of $server_name. Thank you very much for your immediate response and sorry for my late reply. "curl -i" was very useful and using "$host" instead of "$server_name" indeed solved my problem. Thank you very much for your help. Greetings from South-Germaby StSch - Nginx Mailing List - English
This is my configuration: server { listen 80; server_name shell.*; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name shell.*; location / { proxy_pass http://192.168.0.16:4200; } } I am using a Dynamic DNS Service to access NGINX running on my Raspberry Pi. The configuration perfectly works for https://shell.raspi.dyndns.by StSch - Nginx Mailing List - English
I am a total beginner (so please excuse this likely simple question). I want to use Nginx as a reverse proxy to access another service (Shellinabox). For this I have the following configuration: location /shell/ { proxy_pass https://127.0.0.1:4200; rewrite /shell/(.*) /$1 break; } Is there a more elegant solution for the rewrite rule? Maybe something similar to this? rewrite ^(.*)$by StSch - How to...