[GH-ISSUE #54] proxy_pass http://127.0.0.1:8080 #51

Closed
opened 2026-02-26 05:33:53 +03:00 by kerem · 3 comments
Owner

Originally created by @echowings on GitHub (Jan 16, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/54

Dear Developer
I met an issue that is how to setup reverse proxy with option:

location / {
proxy_pass http://127.0.0.1:8080
}

I just checked configuration file but got comment like this.

# TODO: Preserve Path Option

  location / {



        return 301 $scheme://gcdemoshell.azurewebsites.net$request_uri;

  }

How to set each website with custom option like this?

Originally created by @echowings on GitHub (Jan 16, 2019). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/54 Dear Developer I met an issue that is how to setup reverse proxy with option: ``` nginx location / { proxy_pass http://127.0.0.1:8080 } ``` I just checked configuration file but got comment like this. ``` nginx # TODO: Preserve Path Option location / { return 301 $scheme://gcdemoshell.azurewebsites.net$request_uri; } ``` How to set each website with custom option like this?
kerem 2026-02-26 05:33:53 +03:00
Author
Owner

@jc21 commented on GitHub (Jan 16, 2019):

You want to create a "Proxy Host", not a "Redirection Host".

and fwiw, the preserve path option is already part of the interface, the comment is left there by mistake

<!-- gh-comment-id:454653451 --> @jc21 commented on GitHub (Jan 16, 2019): You want to create a "Proxy Host", not a "Redirection Host". and fwiw, the preserve path option is already part of the interface, the comment is left there by mistake
Author
Owner

@echowings commented on GitHub (Jan 16, 2019):

You want to create a "Proxy Host", not a "Redirection Host".

and fwiw, the preserve path option is already part of the interface, the comment is left there by mistake

Is that possible to let it can be set with web operation?

<!-- gh-comment-id:454655601 --> @echowings commented on GitHub (Jan 16, 2019): > You want to create a "Proxy Host", not a "Redirection Host". > > and fwiw, the preserve path option is already part of the interface, the comment is left there by mistake Is that possible to let it can be set with web operation?
Author
Owner

@jc21 commented on GitHub (Jan 16, 2019):

Firstly, forget about this preserve option. You want a Proxy Host to be able to serve requests from your upstream server, http://127.0.0.1:8080.

There is no preserve option for a Proxy Host because it's not a redirection, it's a proxy.

<!-- gh-comment-id:454656301 --> @jc21 commented on GitHub (Jan 16, 2019): Firstly, forget about this preserve option. You want a Proxy Host to be able to serve requests from your upstream server, http://127.0.0.1:8080. There is no preserve option for a Proxy Host because it's not a redirection, it's a proxy.
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#51
No description provided.