Nginx url redirect

I am currently using Squid redirect server to manage my redirects.
for example I have:

redirecting to

i have over 100 domain entries in Squid and want to configure them the same way in Nginx Proxy Manager. Is there a way to import all of my domains into NPM or do i have to create them one by one from the front end GUI of Nginx Proxy Manager?

Hey there, unfortunetly i cannot help You with Your issue but maybe You can share Your knowledge with me. I’m trying to Squid Reverse Proxy to seafile but it seams not working properly. Mostly i get 404 and on 2-3 url attempt I recieve login page, but login does not work at all?

Hi,
I did similar things.
Create a file (e.g., redirects.conf ) and define your redirects in the below format.

server {
    listen 80;
    server_name domain1.com;
    return 301 https://new-domain1.com$request_uri;
}

server {
    listen 80;
    server_name domain2.com;
    return 301 https://new-domain2.com$request_uri;
}

...

Replace domain1.com and new-domain1.com with the appropriate values for your redirects.
Copy the redirects.conf file to the Nginx Proxy Manager’s configuration directory. The exact location depends on your system setup, but it is typically /etc/nginx/conf.d/ or /etc/nginx/sites-enabled/ .
then Nginx Proxy Manager

NPM will now handle the redirects based on the configuration provided in the redirects.conf file.
good to go