[GH-ISSUE #161] redirect 301 or 302 #144

Closed
opened 2026-02-26 06:30:44 +03:00 by kerem · 4 comments
Owner

Originally created by @geelenbert on GitHub (Jun 13, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/161

I would like to be able to setup temporary and permanent redirects.

Currently my nginx config for such a redirect looks like this:

 server {
        listen 80;
        listen [::]:80;
        listen 443 ssl http2;
        listen [::]:443 ssl http2;
        server_name upload.domain.com;

        #redirect using 302 temp redirect. 301 is permanent redirect
        return 302 https://cloud.domain.com/s/IUOBu67byubU#;
}

I would like to be able to configure such a redirect.

I'm not sure this is possible at the moment

Originally created by @geelenbert on GitHub (Jun 13, 2019). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/161 I would like to be able to setup temporary and permanent redirects. Currently my nginx config for such a redirect looks like this: ``` server { listen 80; listen [::]:80; listen 443 ssl http2; listen [::]:443 ssl http2; server_name upload.domain.com; #redirect using 302 temp redirect. 301 is permanent redirect return 302 https://cloud.domain.com/s/IUOBu67byubU#; } ``` I would like to be able to configure such a redirect. I'm not sure this is possible at the moment
kerem 2026-02-26 06:30:44 +03:00
Author
Owner

@duchenpaul commented on GitHub (May 6, 2021):

Is it possible to config 302 instead of 301 redirect?

<!-- gh-comment-id:833474903 --> @duchenpaul commented on GitHub (May 6, 2021): Is it possible to config 302 instead of 301 redirect?
Author
Owner

@chaptergy commented on GitHub (May 10, 2021):

Yes, the redirection host now allows you to specify which http response will be served.
image

<!-- gh-comment-id:837440847 --> @chaptergy commented on GitHub (May 10, 2021): Yes, the redirection host now allows you to specify which http response will be served. ![image](https://user-images.githubusercontent.com/26956711/117732693-db4cd100-b1df-11eb-8065-022a6651453e.png)
Author
Owner

@duchenpaul commented on GitHub (May 11, 2021):

@chaptergy I would like to set Default Site to have a 302 or 307 redirect, because sometime I could make mistakes on setting, I dont want to cache the 404 page, do we have this setting?

<!-- gh-comment-id:837585197 --> @duchenpaul commented on GitHub (May 11, 2021): @chaptergy I would like to set `Default Site` to have a 302 or 307 redirect, because sometime I could make mistakes on setting, I dont want to cache the 404 page, do we have this setting?
Author
Owner

@chaptergy commented on GitHub (May 11, 2021):

No, that is not possible. You can open a issue / feature request specifically for allowing different http codes for a redirect default site.

<!-- gh-comment-id:838739661 --> @chaptergy commented on GitHub (May 11, 2021): No, that is not possible. You can open a issue / feature request specifically for allowing different http codes for a redirect default site.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#144
No description provided.