# location ~ ^/PRINTERNAMELC/(.*) { # proxy_pass http://127.0.0.1:PORT/$1; # proxy_http_version 1.1; # proxy_set_header Upgrade $http_upgrade; # proxy_set_header Connection $connection_upgrade; # proxy_set_header Host $host; # proxy_buffering off; # proxy_read_timeout 10800s; # proxy_send_timeout 10800s; # proxy_connect_timeout 30s; # } location ~ ^/PRINTERNAMELC/(.*) { return 301 $scheme://$host:PORT/$1; }